Mail Archives: djgpp/1997/04/29/21:16:32
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 *
*****************************************************************
- Raw text -