Retrieving Compiler Predefined Macros for gcc

14 Dec 2008

What does gcc define as a macro before you even start compiling?

gcc -E -dM - < /dev/null | sort

I learned this trick from Steven Engelhardt on this blog here by . I "reused" his original title in hopes his page will rank higher.