Page 1
Intel® Compiler for Linux*: Compatibility with GNU compilers Intel® Compilers for Linux*: Compatibility with GNU Compilers White Paper Dr. Fabio Baruffa Dr. Igor Vorobtsov Developer Products Division ...
Page 3
Intel® Compiler for Linux*: Compatibility with GNU compilers Contents Introduction.........................................................................................................................
Page 4
Intel® Compiler for Linux*: Compatibility with GNU compilers
Page 5
Intel® Compiler for Linux*: Compatibility with GNU compilers Introduction Intel® Parallel Studio XE 2018 is a software development tools suite which helps to build and modernize your application. It h...
Page 6
Intel® Compiler for Linux*: Compatibility with GNU compilers C and C++ Source Compatibility The Intel® C++ Compiler conforms to the following ANSI/ISO standards: C++ ISO/IEC 14882:1998 C ISO/IEC 9...
Page 7
Intel® Compiler for Linux*: Compatibility with GNU compilers You want to build something that cannot be compiled by the default version of the system compiler, so you need to use a legacy version fo...
Page 8
Intel® Compiler for Linux*: Compatibility with GNU compilers Open MP* Compatibility and Interoperability The term object-level interoperability refers to the ability to link object files generated by ...
Page 9
Intel® Compiler for Linux*: Compatibility with GNU compilers Binary Compatibility Intel® C++ Compiler 18.0 provides C and C++ binary compatibility with released versions of gcc including 4.3 and later...
Page 10
Intel® Compiler for Linux*: Compatibility with GNU compilers The example in Figure 3 demonstrates C++ binary compatibility with g++ by mixing binary files created by g++ and the Intel C++ Compiler. $ ...
Page 11
Intel® Compiler for Linux*: Compatibility with GNU compilers Linking and Libraries Linking C Language with Intel® Compiler and gcc Compiler C-language object files can be linked with either Intel Comp...
Page 12
Intel® Compiler for Linux*: Compatibility with GNU compilers nm utility on the Intel libraries helps determine which libraries are required. See the Intel C++ and Fortran User’s Guides , library secti...
Page 13
Intel® Compiler for Linux*: Compatibility with GNU compilers Using Optimized Math Function Library The math function library, libimf, is an optimized math library provided with the Intel Compilers. Th...
Page 14
Intel® Compiler for Linux*: Compatibility with GNU compilers Command Line Options The Intel C++ Compiler for Linux supports a large number of common GNU* compiler command-line options. Table 3 lists t...
Page 15
Intel® Compiler for Linux*: Compatibility with GNU compilers -EP Causes the preprocessor to send output to stdout, omitting #line directives. -G num Put global and static objects less than or equal to...
Page 16
Intel® Compiler for Linux*: Compatibility with GNU compilers -d M Instead of the normal output, generate a list of #define directives for all the macros defined during the execution of the preprocesso...
Page 17
Intel® Compiler for Linux*: Compatibility with GNU compilers -fdelete-null-pointer-checks Assume that programs cannot safely dereference null pointers, and that no code or data element resides at addr...
Page 18
Intel® Compiler for Linux*: Compatibility with GNU compilers -fminshared Specifies that a compilation unit is a component of a main program and should not be linked as part of a shareable object. -fno...
Page 19
Intel® Compiler for Linux*: Compatibility with GNU compilers -ftrapuv Initializes stack local variables to an unusual value to aid error detection. -funroll-all-loops Unroll all loops even if the numb...
Page 20
Intel® Compiler for Linux*: Compatibility with GNU compilers program and of the preprocessor and the compiler proper -undef Do not predefine any system-specific or GCC- specific macros. The standard p...
Page 21
Intel® Compiler for Linux*: Compatibility with GNU compilers -mcmodel=medium Generate code for the medium model: the program is linked in the lower 2 GB of the address space. -mcmodel=large Generate c...
Page 22
Intel® Compiler for Linux*: Compatibility with GNU compilers -mfentry If profiling is active (-pg), put the profiling counter call before the prologue. -mcrc32 This option enables built-in functions _...
Page 23
Intel® Compiler for Linux*: Compatibility with GNU compilers -Wcomments -Wcomment -Wconditionally-supported -Wcontext-limit=<val> -Wconversion -Wdeclaration-after-statement -Wdeprecated-declarat...
Page 24
Intel® Compiler for Linux*: Compatibility with GNU compilers Intel® Fortran Compiler The Intel Fortran Compiler supports the Fortran 95 standard and has complete support for the Fortran 2008 standard....
Page 25
Intel® Compiler for Linux*: Compatibility with GNU compilers Conclusion Intel C++ Compilers for Linux provide outstanding source-language, binary, and command-line compatibility with the GNU C and C++...
Page 26
Intel® Compiler for Linux*: Compatibility with GNU compilers Appendix A: Linux Distribution Support Information The following table lists supported glibc and bunitils versions for recent releases of t...
Page 27
Intel® Compiler for Linux*: Compatibility with GNU compilers References General information on Intel® software development tools, including the Intel C++ and Fortran Compilers: http://www.intel.com/so...