author | Oleksandr Gavenko <gavenkoa@gmail.com> |
Tue, 28 Jul 2009 14:42:29 +0300 | |
changeset 170 | 07218dd3cbca |
parent 169 | 0f84c4f84770 |
child 171 | 8e806cddee36 |
--- a/cpp.rst Mon Jul 27 17:41:39 2009 +0300 +++ b/cpp.rst Tue Jul 28 14:42:29 2009 +0300 @@ -10,3 +10,25 @@ $ cl /E <file>.c +* Who to see predefined macros? + +See + + http://predef.sourceforge.net/ + http://en.wikipedia.org/wiki/C_preprocessor#Compiler-specific_predefined_macros + +** 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