gcc command line from inside c source

Ian Lance Taylor iant@google.com
Tue Oct 21 16:42:00 GMT 2008


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

> On Tue, Oct 21, 2008 at 4:18 PM, Ian Lance Taylor <iant@google.com> wrote:
>>> 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.
> ok,
> where can I find a list of these predefined macros, to find out if
> there are others that can be useful for me?

http://gcc.gnu.org/onlinedocs/gcc-4.3.2/cpp/Predefined-Macros.html

Ian



More information about the Gcc-help mailing list