What happens when -O1 flag is used?

Andrew Haley aph@redhat.com
Tue Feb 27 10:04:00 GMT 2007


ranjith kumar writes:
 > Hi,
 >    1)Are -O and -O1 flags  equal?

Yes.

 >    2) What happens internally when -O1/-O flag is
 > used?

The variable "optimize" is set to 1.

 >       I have been searching gcc internal manuals. But
 > I could not locate.
 >   Where can I find it.Any help please.

Read the source, Luke Skywalker.

Andrew.



More information about the Gcc-help mailing list