Produces a compiler listing that includes an object listing. You can use the object listing to help understand the performance characteristics of the generated code and to diagnose execution problems.


Read syntax diagramSkip visual syntax diagram        .-nolist--------------------.
>>- -q--+-list--+-----------------+-+--------------------------><

Where specifying -qlist=offset changes the listing of the instructions in .lst file to be offset from the start of the procedure.


The -qlist=offset is only relevant if there are multiple procedures in a compilation unit.

If you specify -qlist=offset, the offset of the PDEF header is no longer 00000, but it now contains the offset from the start of the text area. Specifying the option allows any program reading the .lst file to add the value of the PDEF and the line in question, and come up with the same value whether -qlist=offset or -qlist=nooffset is specified.

Specifying -qlist implies -qlist=nooffset.

The -qnoprint compiler option overrides this option.


To compile myprogram.C and produce an object listing, enter:

xlc++ myprogram.C -qlist

Related information