Intel® C++ Compiler for Mac OS* - Compatibility with the GNU* gcc and g++ compilers

Intel® C++ Compiler for Mac OS* provides excellent source, binary and command line compatibility with gcc and g++.

Mac OS* Specific Compiler Features

  • Support for GNU inline ASM syntax
  • Support for Microsoft* MASM-style inline assembly format (-use-msasm)
  • Support of Pascal strings (-fpascal-strings)
  • Support weak_import attribute
  • Support for Apple* legacy alignment options (-malign-power, -malign-natural, -malign-mac68k)
  • Support for Apple Frameworks and Apple€™s C++ language extensions
  • Interoperable with objective C where GCC will compile object C source
  • Universal binary support

Support for Mac OS* Specific Linker Options

  • Produce a Mach-O bundle format file with ( -bundle)
  • Produce Mach-O demand page executable format file. (- execute)
  • Specify file containing list of files to link ( -filelist)
  • Build output as flat namespace image; not default (- flat_namespace)
  • Treat all dynamic libraries as flat namespace images (- force_flat_namespace)
  • Build output as two level namespace image; default (- twolevel_namespace)
  • Specify framework but mark all references to it as weak imports (- weak_framework)
  • Building shared and static libraries ( -dynamiclib)
  • Generate non-pic code ( -mdynamic-no-pic)

In addition to the above Mac OS specific features, Intel C++ Compiler for Mac OS shares GNU compiler source, binary, and command-line compatibility features described in the document, Intel® Compilers for Linux*: Compatibility with GNU Compilers.

For more complete information about compiler optimizations, see our Optimization Notice.