Topic
1 reply Latest Post - ‏2013-04-28T13:31:00Z by Visda
Visda
Visda
21 Posts
ACCEPTED ANSWER

Pinned topic zOS: What compile options were used?

‏2013-04-28T13:30:37Z |

The problem customers face, and the question we are often asked: is how can I extract compile options information from the binary object or application executable?

 

 

  • Visda
    Visda
    21 Posts
    ACCEPTED ANSWER

    Re: zOS: What compile options were used?

    ‏2013-04-28T13:31:00Z  in response to Visda

    The good news is that customers who don't have access to listing files, compile JCLs, or Makefiles are still able to extract compile options information from the binary object or application executable.

    The z/OS V1R10 XL C/C++ compiler saves a fixed subset of the compile options to the end of the application executable in a compact form.  Figure 157 of z/OS V1R13 XL C/C++ Programming Guide shows the layout of the saved options information.  To see the layout of saved compile options for older releases of the compiler this information can be found in the Programming Guide -> Coding: Advanced Topics -> Saved compile-time options information -> Saved options information layout.

    For older releases of the compiler the LISTOBJ function of the AMBLIST utility can be used to list the compile options stored in the object END record.

    In USS:

    echo " LISTOBJ"|amblist  f001.o>objectEndCard
     

    In MVS:

    //LSTOBJDK     JOB      MSGLEVEL=(1,1),REGION=256M

    //AMB          EXEC     PGM=AMBLIST

    //SYSPRINT     DD       SYSOUT=A

    //OBJLIB       DD   DSN=VISDAV.OBJ,DISP=SHR

    //SYSIN        DD       *                   

           LISTOBJ         DDN=OBJLIB,MEMBER=(CODE,CODE0),                                       

                  TITLE=('OBJECT MODULE LISTING',25)

    /*

    Updated on 2013-04-28T13:39:08Z at 2013-04-28T13:39:08Z by Visda