So the utility would loop through the object code looking for opcodes, and
when it found one it would know the required hardware level, and keep track
of the maximum found?

Interesting idea. I have never heard of such a utility, but it could be
attempted. Finding op codes is an imperfect science because it is hard
sometimes to tell an opcode from other data. And of course some of the newer
instructions are not "just an opcode" -- there are other bits besides the
first 8 that specify the particular instruction.

If the programs are compiled by a modern compiler I suspect the compiled
ARCH level may be in the LE control blocks, but that is just a guess. It
that were the case, and that were sufficient, then this is a fairly easy
project, and certainly a well-defined project that could be done "perfectly"
(as opposed to "imperfect science").

Charles


-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On
Behalf Of Mike Hochee
Sent: Tuesday, December 8, 2020 2:50 PM
To: [email protected]
Subject: Re: Determining required z/series hardware level - REVISED

Oops, got the hardware lvl for AHI wrong, so changed 'G9' to 'G10'  

Hi,

I'm looking for a utility/program which is capable of reading a z/OS
executable, whether an lmod or program object, or unbound object code, and
examining it for hardware/architecture level compatibility. I'm not
specifically referring to the ARCLVL of on the SYSSTATE macro, although I
know there is some correspondence, but rather to the set of unprivileged
instructions introduced at a particular hardware architecture levels.
Apologies in advance for any imprecise/inaccurate  terminology.

For example, let's say I happen to know that the most recently introduced
z/Series instruction used by a particular executable is the AHI instruction,
then I would expect this utility/program to output 'G10', suggesting the
minimum hardware architecture required to support execution.

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

Reply via email to