GCC:
$ cpp <file>.c
MSVC:
$ cl /E <file>.c
Under Emacs select region and type C-c C-e.
See:
GNU C Compiler:
$ gcc -dM -E - < /dev/null
HP-UX ansi C compiler:
$ cc -v EMPTY.c
SCO OpenServer C compiler:
$ cc -## EMPTY.c
Sun Studio C/C++ compiler:
$ cc -## EMPTY.c
IBM AIX XL C/C++ compiler:
$ cc -qshowmacros -E EMPTY.c
For Visual Studio compiler there no any possibility get predefined macros from command line... But some macros documented: