Pre-defined C/C++ Compiler Macros


(1) sourceforge
http://predef.sourceforge.net/
http://sourceforge.net/p/predef/wiki/Home/

(2) MSDN
http://msdn.microsoft.com/en-us/library/503x3e3s.aspx

(3) GNU
http://gcc.gnu.org/onlinedocs/cpp/Macros.html

(4) Nadeausoftware
C/C++ tip: How to list compiler predefined macros
http://nadeausoftware.com/articles/2011/12/c_c_tip_how_list_compiler_predefined_macros

C/C++ tip: How to detect the compiler name and version using compiler predefined macros
http://nadeausoftware.com/articles/2012/10/c_c_tip_how_detect_compiler_name_and_version_using_compiler_predefined_macros

C/C++ tip: How to detect the operating system type using compiler predefined macros
http://nadeausoftware.com/articles/2012/01/c_c_tip_how_use_compiler_predefined_macros_detect_operating_system

C/C++ tip: How to detect the processor type using compiler predefined macros
http://nadeausoftware.com/articles/2012/02/c_c_tip_how_detect_processor_type_using_compiler_predefined_macros

(5) beefchunk
http://beefchunk.com/documentation/lang/c/pre-defined-c/index.php

(6) 查看系統中 gcc 的預先定義 : cpp -dM /dev/null
Bin Fan, 2013/05/22, "查看gcc预定义的macro"


arrow
arrow
    全站熱搜

    胖胖飄 發表在 痞客邦 留言(0) 人氣()