Optimisation options turned on at a certain level

jgrant@reflectionsinteractive.com jgrant@reflectionsinteractive.com
Mon Dec 22 11:00:00 GMT 2003


Hello Ian,

Thank you for the link.  Very useful.

I was hoping for a list of the options as well as the text describing the
different levels.

Could this be added the documentation? so its clear exactly what is being
done by which options are being passed.  Perhaps something like:

Optimisation level  -O1

	-fomit-frame-pointer			When possible do not
generate stack frames
	-fdefer-pop				Defer popping functions args
from stack until later	
	-fthread-jumps				Perform jump threading
optimisations
	-fdelayed-branch			Attempt to fill delay slots
of branch instructions


Optimisation level  -O3

	-funroll-loops
	etc

(I these may not be accurate, just for illustration)


What do you think?



Kind regards

Jonathan



More information about the Gcc mailing list