This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Newbie Questions about Optimization
- To: egcs at cygnus dot com
- Subject: Newbie Questions about Optimization
- From: David Ronis <ronis at onsager dot chem dot mcgill dot ca>
- Date: Wed, 3 Dec 1997 18:30:43 -0500 (EST)
- Reply-To: David Ronis <ronis at onsager dot chem dot mcgill dot ca>
I just downloaded and compiled the egcs-1.0 release package on my linux box
(2.0.29 version of the kernel). It compiled fine and seems to work.
Several questions about optimization come to mind:
1. is the set of flags that should get the most aggressive optimization:
-O3 -march=pentium -ffast-math -funroll-loops -malign-double
-malign-loops=2 -malign-jumps=2 -malign-functions=2
In particular, are higher -O levels supported? [They don't appear to be
according to the info files]. Also, are the various alignment options
necessary or are they implied by the -march=pentium flag?
2. If I understood the info page correctly, -march=pentium means that the
code will only run on a pentium.
Thanks in advance.
David Ronis