This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Newbie Questions about Optimization


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]