Supported compiler options

This topic describes Clang, GCC, and IBM compiler options that are supported by IBM Open XL C/C++ for AIX 17.1.3.

Clang and GCC options

The new ibm-clang, ibm-clang_r, and ibm-clang++_r invocation commands accept Clang options. For more information about Clang options, see Clang options.

Meanwhile, GCC options that were supported by IBM® XL C/C++ for AIX® 16.1.0 are also supported by IBM Open XL C/C++ for AIX 17.1.3. Refer to GCC options for details.

Supported IBM compiler options

IBM Open XL C/C++ for AIX 17.1.3 introduces support for new options.

Additionally, the following options that were supported by IBM XL C/C++ for AIX 16.1.0 are also supported by IBM Open XL C/C++ for AIX 17.1.3.
  • -b
  • -B
  • -bmaxdata
  • -brtl
  • -c
  • -C
  • -D
  • -e
  • -E
  • -g
  • -I
  • -l
  • -L
  • -o
  • -p
  • -pg
  • -r
  • -S
  • -U
  • -w
  • -W

Find details of all supported options in Compiler options.