C/C++

C/C++

C/C++

Your one-stop destination to learn and collaborate about the latest innovations in IBM C/C++ for z/OS compilers to develop high-performing C/C++ applications and system programs on z/OS while maximizing hardware use and improving application performance.

 View Only
  • 1.  How to get "Inline Report" in MetalC compile listing?

    Posted Tue February 14, 2023 12:39 AM

    I've been writing some MetalC where I can prove that the compiler "inlines" a couple of small functions, but I cannot get the compiler to generate an "Inline Report" even when I use the compiler option "INLINE(AUTO,REPORT,100,1000)".  I've tried all sorts of different compiler option combinations, but I can never seem to get that report out of the C compiler even when I can clearly see in the ASM output that these functions were inlined.  Is there some "magic sauce" compiler option I don't know about that can make that happen?  Or is just another limitation (or maybe a compiler bug?) due to the MetalC setting?



    ------------------------------
    Peter Farley
    ------------------------------


  • 2.  RE: How to get "Inline Report" in MetalC compile listing?

    Posted Thu February 16, 2023 05:09 PM

    (Posting on behalf of a colleague)

     hi Peter,

    This is a limitation in our compiler. We don't generate inline reports for Metal C.

    Regards,



    ------------------------------
    Linda Chui
    Compilation Technology & Enterprise Products
    IBM Canada
    ------------------------------



  • 3.  RE: How to get "Inline Report" in MetalC compile listing?

    Posted Thu February 16, 2023 08:27 PM

    Thank you for the prompt reply Linda.  It's a shame to have that limitation, but at least I now know it isn't my error or a compiler bug.



    ------------------------------
    Peter Farley
    ------------------------------