C:
gcc -dM -E - < /dev/null
clang -dM -E - < /dev/null
C++:
g++ -dM -E -x c++ - < /dev/null
对GCC 的内置宏定义的解释:
https://gcc.gnu.org/onlinedocs/cpp/Common-Predefined-Macros.html
https://github.com/gcc-mirror/gcc/blob/master/gcc/config/aarch64/aarch64-c.c)
下面是导出gcc内置宏定义的方法:
https://stackoverflow.com/questions/2224334/gcc-dump-preprocessor-defines
网友评论