Compatibility with GNU

XL C/C++ supports a subset of the GNU compiler command options to facilitate porting applications developed with gcc and g++ compilers.

This support is available when the gxlc or gxlc++ invocation command is used together with select GNU compiler options. Where possible, the compiler maps GNU options to their XL C/C++ compiler option counterparts before invoking the compiler.

These invocation commands use a plain text configuration file to control GNU-to-XL C/C++ option mappings and defaults. You can customize this configuration file to better meet the needs of any unique compilation requirements you may have. See "Reusing GNU C/C++ compiler options with gxlc and gxlc++" for more information.