This topic applies to Linux*.
The Intel® C++ Compiler is compatible with most versions of the GNU Compiler Collection (GCC*). The release notes contains a list of compatible versions.
C language object files created with the Intel® C++ Compiler are binary compatible with GCC* and C/C++ language library. You can use the Intel® C++ Compiler or the GCC compiler to pass object files to the linker.
When using an Intel software development product that includes an Intel® C++ Compiler with a Clang front-end, you can also use dpcpp.
The Intel® C++ Compiler supports many of the language extensions provided by the GNU compilers. See http://www.gnu.org for more information.
Statement expressions are supported, except that the following are prohibited inside them:
dynamically-initialized local static variables
local non-POD class definitions
try/catch
variable length arrays
The Intel® C++ Compiler supports GCC-style inline ASM if the assembler code uses AT&T* System V/386 syntax.
C++ compilers are interoperable if they can link object files and libraries generated by one compiler with object files and libraries generated by the second compiler, and the resulting executable runs successfully. The Intel® C++ Compiler is highly compatible with the GNU compilers.
The Intel® C++ Compiler and GNU GCC* compiler support the following predefined macros:
__GNUC__
__GNUG__
__GNUC_MINOR__
__GNUC_PATCHLEVEL__
You can specify the -no-gcc option to undefine these macros.
Not defining these macros results in different paths through system header files. These alternate paths may be poorly tested or otherwise incompatible.
The Intel® oneAPI DPC++ Compiler uses the GNU* tools on the system, such as the GNU header files, including stdio.h, and the GNU linker and libraries. So the compiler has to be compatible with the version of GCC or g++ you have on your system.
By default, the compiler determines which version of GCC or g++ you have installed from the PATH environment variable.
The Intel compiler driver uses the default version of GCC/g++ to extract the location of the headers and libraries.
The Intel® C++ Compiler includes improved support for the following open source tools:
GNU Libtool – a script that allows package developers to provide generic shared library support.
Valgrind – a flexible system for debugging and profiling executables running on x86 processors.
GNU Automake – a tool for automatically generating Makefile.ins from files called Makefile.am.