Mail Archives: djgpp/2000/07/06/08:35:43
S. T. L. <stl137 AT aol DOT com> wrote:
[...]
> the commandline GCC -s -O2 -march=i686 -fomit-frame-pointer
> -ffast-math -funroll-loops -funroll-all-loops -malign-double
> -fstrict-aliasing -o BLADE.EXE *.c
Be careful with -fstrict-aliasing. It may generate code that doesn't
work reliably, as it makes assumptions about the code's behaviour that
many existing sources may not respect.
And, if -funroll-all-loops really gains something, then you should
probably also be using -O3 (or -finline-functions). Both have a
similar behaviour: they generate larger code, by repeating code
sections instead of looping or calling subprocedures, respectively.
--
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.
- Raw text -