gcc command line from inside c source

Ian Lance Taylor iant@google.com
Tue Oct 21 14:19:00 GMT 2008


"massimiliano cialdi" <cialdi@gmail.com> writes:

> at the beginning of .lst there are some infos like these:

...

> is it possible to access these infos from inside .c source file (maybe
> with a predefined macro)?

No.  Sorry.

You can test for some very simple things.  E.g., __OPTIMIZE__ is
defined if -O was used.

Ian



More information about the Gcc-help mailing list