This is the mail archive of the gcc-help@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]
Other format: [Raw text]

Re: Can I find what #defines's the pre-processor makes?


Andrew Haley wrote:
gcc -save-temps -Wp,-dD

Look in the .i file
On unix like machines,

echo | cpp -dD

generates the list on stdout (i.e. to your console, or xterm or whatever) without having to have any files involved.

Patrick




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