Is there a fairly straightforward way to determine the "architecture number" of the hardware on which a program is actually running? By architecture level I mean z13 = ARCH(11) and so forth, as supported by C/C++ and I think now COBOL. By straightforward I mean I do not want to test various feature bits in the CVT and try to infer the architecture level or try various instructions and catch the S0C1s. The best I have come up with is to get the CPUID, get the machine type from there, and use a lookup table, so I am looking for anything better than that. (Adding two to the assembler "ZS-level" would be a better way, if that were available somewhere.)
Thanks, Charles ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
