Thanks Linda for the response and the idea for a work-around. On a slightly different subject, is it true (as I read elsewhere) that the new clang-based C/C++ compiler has no listing options at all? How in the world are programmers supposed to debug production abends without at the very least a full LIST and XREF section of the compiler output? I realize that the open systems world depends on source debuggers and XREF-generators separate from the compiler and other such separate utilities, but when programs abend on z/OS we need these listing artifacts to analyze the root cause after the abend, which cannot be done in a live debug session in production – that just will not be allowed to happen in any responsible commercial shop.
I suppose if there were a separate utility to produce an accurate LIST artifact from the compiled object code that MIGHT be enough, but ISTM that adds unnecessarily separate steps to the program preparation process. Peter From: IBM Mainframe Discussion List <[email protected]> On Behalf Of Linda Chui Sent: Saturday, May 10, 2025 11:43 AM To: [email protected] Subject: Re: XL C/C++ question: Possible to get AGGR and XREF only for non-"standard" #include's? On Fri, 9 May 2025 19:18:26 +0000, Farley, Peter <[email protected]> wrote: >The C/C++ "standard" includes (stdio, etc.) have a lot of intermediate >"baggage" that is usually (though not always) not relevant to a programmer's >investigations and reviews. > >Is it possible (maybe via #pragma?) to positionally "turn off" aggregate and >XREF processing before standard #includes in the source and then turn it back >on for "important to me" #include's? > >IOW, can I control what appears in the aggregate and XREF listing sections? > >Peter Hi, There is no way to do this unfortunately, but you can always compile the headers themselves and save those listings. When you do your normal compilation, you can remove those saved header sections from your full listing with tools like diff. Hope this helps, z/OS XL C/C++ Compiler team -- This message and any attachments are intended only for the use of the addressee and may contain information that is privileged and confidential. If the reader of the message is not the intended recipient or an authorized representative of the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail and delete the message and any attachments from your system. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
