IA-32 is not available on macOS*. IA-32 is deprecated on other operating systems and will be removed in a future release.
Preprocessor symbols (macros) let you substitute values in a program before it is compiled. The substitution is performed in the preprocessing phase.
The preprocessor symbols shown in the table below are predefined by the compiler system and are available to compiler directives and to fpp. If you want to use other symbol names, you need to specify them on the command line.
You can use the D compiler option to define the symbol names to be used during preprocessing. This option performs the same function as the #define preprocessor directive.
Preprocessing with fpp replaces every occurrence of the defined symbol name with the specified value. Preprocessing compiler directives only allow IF and IF DEFINED.
If you want to disable symbol replacement (also known as macro expansion) during the preprocessor step, you can specify the macro=no preprocessor option for the fpp compiler option.
Disabling preprocessor symbol replacement is useful for running fpp to perform conditional compilation (using #ifdef, etc.) without replacement.
You can use the U preprocessor option to suppress an automatic definition of a preprocessor symbol. This option suppresses any symbol definition currently in effect for the specified name. This option performs the same function as an #undef preprocessor directive.
The symbols in the following table can be used in both fpp and the Fortran compiler conditional compilations.
Symbol | Description |
---|---|
__APPLE__ (macOS*) |
Defined as '1'. |
__AVX512BW__ (Windows*, Linux, macOS*) |
Defined as '1' for processors that support Intel® Advanced Vector Extensions 512 (Intel® AVX-512) Byte and Word Instructions (BWI). It is also defined as '1' when option [Q]xCORE-AVX512 or higher processor-targeting options are specified. |
__AVX512CD__ (Windows*, Linux, macOS*) |
Defined as '1' for processors that support Intel® Advanced Vector Extensions 512 (Intel® AVX-512) Conflict Detection Instructions (CDI). It is also defined as '1' when option [Q]xCORE-AVX512, [Q]xCOMMON-AVX512, or higher processor-targeting options are specified. |
__AVX512DQ__ (Windows*, Linux, macOS*) |
Defined as '1' for processors that support Intel® Advanced Vector Extensions 512 (Intel® AVX-512) Doubleword and Quadword Instructions (DQI). It is also defined as '1' when option [Q]xCORE-AVX512 or higher processor-targeting options are specified. |
__AVX512ER__ (Windows*, Linux, macOS*) |
Defined as '1' for processors that support Intel® Advanced Vector Extensions 512 (Intel® AVX-512) Exponential and Reciprocal instructions. |
__AVX512F__ (Windows*, Linux, macOS*) |
Defined as '1' for processors that support Intel® Advanced Vector Extensions 512 (Intel® AVX-512) Foundation instructions. It is also defined as '1' when option [Q]xCORE-AVX512, [Q]xCOMMON-AVX512, or higher processor-targeting options are specified. |
__AVX512PF__ (Windows*, Linux, macOS*) |
Defined as '1' for processors that support Intel® Advanced Vector Extensions 512 (Intel® AVX-512) Prefetch instructions. |
__AVX512VL__ (Windows*, Linux, macOS*) |
Defined as '1' for processors that support Intel® Advanced Vector Extensions 512 (Intel® AVX-512) Vector Length extensions. It is also defined as '1' when option [Q]xCORE-AVX512 or higher processor-targeting options are specified. |
_DEBUG (Windows) |
Defined as '1' only if options /dbglibs, /MT[d], or /MD[d] are specified. |
_DLL (Windows) |
Defined as '1' only if one of the following options is specified or implied:
|
__ELF__ (Linux) |
Defined as '1' at the start of compilation. |
__gnu_linux__ (Linux) |
Defined as '1' at the start of compilation. |
__i386__ __i386 i386 (Linux, macOS*) |
Defined as '1' for compilations targeting IA-32 architecture (C++ only). IA-32 is not available on macOS*. IA-32 is deprecated on other operating systems and will be removed in a future release. |
__INTEL_COMPILER (Windows, Linux, macOS*) |
The version of the compiler in the form VVSS, where VV is the major version and SS is the minor version. For example, Version 16.0 is indicated by a value of 1600. |
__INTEL_COMPILER_BUILD_DATE (Windows*, Linux, macOS*) |
The compiler build date. It takes the form YYYYMMDD, where YYYY is the year, MM is the month, and DD is the day. |
__INTEL_COMPILER_UPDATE (Windows, Linux) |
The compiler update number within a version (such as 1 for Update 1, etc.). See also symbol __INTEL_COMPILER. |
__linux__ __linux linux (Linux) |
Defined as '1' at the start of compilation. |
_M_AMD64 (Windows) |
Defined as '1' while building code targeting Intel® 64 architecture. |
_M_IX86=700 (Windows) |
Defined as '1' while building code targeting IA-32 architecture (C++ only). IA-32 is not available on macOS*. IA-32 is deprecated on other operating systems and will be removed in a future release. |
_M_X64 (Windows) |
Defined as '1' while building code targeting Intel® 64 architecture. |
__MACH__ (macOS*) |
Defined as '1'. |
_MT (Windows) |
Defined as '1' only if option /threads or /MT is specified. |
_OPENMP=201611 (Windows, Linux, macOS*) |
Defined when OpenMP* processing has been requested (that is, option [q or Q]openmp has been specified along with option fpp). The value takes the form YYYYMM, where YYYY is the year and MM is the month of the supported OpenMP* Fortran specification. The currently supported OpenMP API is version TR4: Version 5.0, dated November 2016. |
__PIC__ __pic__ (Linux) |
Defined as '1' only if the code was requested to be compiled as position-independent code. |
_WIN32 (Windows) |
Defined as '1' while building code targeting IA-32 or Intel® 64 architecture. IA-32 is not available on macOS*. IA-32 is deprecated on other operating systems and will be removed in a future release. |
_WIN64 (Windows) |
Defined as '1' while building code targeting Intel® 64 architecture. |
__x86_64 __x86_64__ (Linux, macOS*) |
Defined as '1' while building code targeting Intel® 64 architecture. |