Thanks @Gil but that is not the problem I am trying to solve. As the subject 
and the OP say, "in object code" (not "when writing a program"). I have used 
__TARGET_LIB__ and __ARCH__ and _OPT__ and perhaps others.

Here is the exact problem I am trying to solve: I have a C++-based load module 
built around 2015 or so. Question: what is the minimum level of LE and what is 
the minimum hardware that it requires?

A load module of course may be made up of the output of many individual 
compiles. So technically that is a question that could have many answers, or 
rather, that was the least of multiple answers. But in this case I happen to 
know that the object modules were all compiled with the same options.

Thanks everyone! Much appreciated.

Charles


-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf 
Of Paul Gilmartin
Sent: Monday, December 21, 2020 6:15 AM
To: [email protected]
Subject: Re: Compiler options in object code?

On Sun, 20 Dec 2020 11:52:13 -0800, Charles Mills wrote:

>Does anyone know where any compiler options are preserved in object code? I
>am at this moment specifically interested in the XL C/C++ compiler options
>TARGET and ARCH. In the pseudo-assembler listing I see
>
__ARCH__ is available as a predefined macro:
    
https://www.ibm.com/support/knowledgecenter/SSLTBW_2.2.0/com.ibm.zos.v2r2.cbclx01/macros_option_settings.htm
... Prefix an eyecatcher and STRINGIFY it.

I don't see TARGET there.

-- gil

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to