glxc and glxc++ syntax
The following diagram shows the gxlc and gxlc++ syntax:

>>-+-gxlc---+--+------+--+-----------------------------+--+--------------------+--filename-><
'-gxlc++-' +- -v--+ '- -Wx,--xlc_or_xlc++_options-' '-gcc_or_g++_options-'
'- -vv-'
where:
- filename
- Is the name of the file to be compiled.
- -v
- Allows you to verify the command that will be used to invoke XL C/C++. gxlc or gxlc++ displays
the XL C/C++ invocation command that it has created, before using it
to invoke the compiler.
- -vv
- Allows you to run a simulation. gxlc or gxlc++ displays the XL C/C++ invocation
command that it has created, but does not invoke the compiler.
- -Wx,xlc_or_xlc++_options
- Sends the given XL C/C++ options directly to the or xlc++ invocation command. gxlc or gxlc++ adds
the given options to the XL invocation it is creating, without attempting
to translate them. Use this option with known XL C/C++ options to improve
the performance of the utility. Multiple xlc_or_xlc++_options use a comma delimiter.
- gcc_or_g++_options
- Are the gxlc or gxlc++ options that are to be translated to xlc or xlc++ options. The
utility emits a warning for any option it cannot translate. The gcc and g++ options
that are currently recognized by gxlc or gxlc++ are listed in the configuration
file gxlc.cfg. Multiple gcc_or_g++_options are
delimited by the space character.
Related information