programming

GCC tip: get a list of built-in macros

Apple's QA1424 has a quick tip to dump out all the predefined macros in the gcc compiler. I haven't tried it, but I suspect it works for all gcc's, not just the one on Mac. Here's the script:

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