Skip to content

List all GCC Defines

Here’s a trick to get gcc to tell you about all of its defines:

touch foo.c
gcc -c -E -dM foo.c
rm foo.c

Dying for a command line switch, but handy nonetheless.