From: Robert Hoehne Newsgroups: comp.os.msdos.djgpp Subject: Re: Optimization idea/RHIDE Date: Tue, 29 Apr 1997 10:05:42 +0200 Organization: TU Chemnitz-Zwickau Lines: 42 Message-ID: <3365ABD6.556D017C@Mathematik.tu-chemnitz.de> References: <335EB17C DOT 5536 AT orland DOT pr DOT tisip DOT no> <33639D17 DOT 4560 AT ctv DOT es> NNTP-Posting-Host: pandora.hrz.tu-chemnitz.de Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk I do not want to start an optimization discussion thread here, but I want to tell you my opinion. My experiance showd me, that in most common usage the use of the '-O' switch is enough. That means: If you want to have fast compiling, disable the '-O' option, and if you want to have a small and fast executable, enable '-O2'. All the other optimization options are very special and only increase the speed or decrease the size for special programs. Ans as a summary of the above, I see no neccessary for adding additional buttons, since you can do it mostly with the '-O' switch. > could do a non-optimized compile-only run to check syntax, an optimized Hey, for checking the syntax there is a separate switch to gcc. > and stripped run to get a final .exe for a project, etc. Making a stripped exe is usefull only if you know exactly what you do. I never strip my exe's except in the following cases: 1) Writing such simple programs like the "Hello world" 2) Making a distribution. 3) I'm abolutely sure, that my program has no bugs, but this will never happen. Robert -- ***************************************************************** * Robert Hoehne, Fakultaet fuer Mathematik, TU-Chemnitz-Zwickau * * Post: Am Berg 3, D-09573 Dittmannsdorf * * e-Mail: Robert DOT Hoehne AT Mathematik DOT TU-Chemnitz DOT DE * * WWW: http://www.tu-chemnitz.de/~rho * *****************************************************************