cpp.rst
changeset 170 07218dd3cbca
parent 156 a53c8f8ada7d
child 176 5181378e42af
--- 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