z/OS® XL C and C++ programs
The following table shows various compiler options that can be used to prepare z/OS® XL C and C++ programs for use with the ADFz family of products (z/OS® Debugger, Fault Analyzer for z/OS® and Application Performance Analyzer for z/OS®). The methods suggested in the following table indicate whether the load module produced has no significant runtime overhead and therefore is suitable for a production environment.
Compiler options | Output produced | Options supported and suggested for z/OS® Debugger | Options supported and suggested for Fault Analyzer for z/OS® | Options supported and suggested for APA |
---|---|---|---|---|
Preprocess (1st stage) to expand source: PP(COMMENTS, NOLINES)
Compile (2nd stage): DEBUG (FORMAT (DWARF), NOHOOK, SYMBOL, FILE (location)), LIST, LONGNAME, NOOFFSET, GONUMBER1 |
|
Supported. You can use it for production if the OPT compile option is not used. Full functionality available. | Supported. Use of the OPT compile option might result in incorrect source line being reported. Full functionality available. | Supported. |
|
Recommended. You can use it for production if the OPT compile option is not used. Full functionality available. | Supported. Use of the OPT compile option might result in incorrect source line being reported. Full functionality available. | Not supported. | |
Preprocess (1st stage) to expand source: PP(COMMENTS, NOLINES)
Compile (2nd stage): DEBUG (FORMAT (DWARF), HOOK (LINE, NOBLOCK, PATH), SYMBOL, FILE (location)), LIST, LONGNAME, NOOPT, NOOFFSET, GONUMBER 1 |
|
Supported. Full functionality available. Use in production not recommended. | Supported. Full functionality available. | Supported. |
|
Supported. Full functionality available. Use in production not recommended. | Supported. Full functionality available. | Not supported. | |
Preprocess (1st stage) to expand source: PP(COMMENTS, NOLINES)
Compile (2nd stage): TEST, AGGREGATE3, NOIPA, LIST, NESTINC (255), NOOFFSET, NOOPT, SOURCE, XREF, LONGNAME, GONUMBER |
|
Supported. Use in production not recommended. | Supported. Use in production not recommended. Variables not reported. | Supported. Use in production not recommended. |
|
Supported. Use in production not recommended. | Supported. Use in production not recommended. Variables not reported. | Supported. Use in production not recommended. | |
NOTEST, AGGREGATE3, NOIPA, LIST, NESTINC (255), NOOFFSET, NOOPT, SOURCE, XREF, LONGNAME |
|
Not supported. | Supported. Suggested for production and test. Variables not reported. | Supported. Suggested for production and test. |
|
Not supported. | Supported. Suggested for production and test. Variables not reported. | Supported. Suggested for production and test. | |
UNIX™ System Services compile -g |
|
Supported. | Supported. | Supported. |
|
Supported. | Supported. | Not supported. |
z/OS® Debugger needs only the .mdbg file to debug your program.