Reusing GNU C compiler options with gxlc

The gxlc utility accepts GNU C compiler options and translates them into comparable XL C options. It uses the XL C options to create an xlc invocation command, which the utility uses to invoke XL C. The gxlc utility is provided to facilitate the reuse of makefiles created for applications previously developed with GNU C. However, to fully exploit the capabilities of XL C, it is recommended that you use the XL C invocation command xlc and its associated options.

The actions of gxlc is controlled by the configuration file /etc/gxlc.cfg. The GNU C options that have an XL C counterpart are shown in this file. Not every GNU option has a corresponding XL C option. The gxlc utility returns a warning for any GNU C option it cannot translate.

The gxlc option mappings are modifiable. For information on adding to or editing the gxlc configuration file, see Configuring the gxlc option mapping.