The amode31 | amode64 type attribute (C only) (IBM Extension)

For use with the METAL compiler option, the amode31 type attribute allows you to define a typedef of a function or function pointer type to operate in addressing mode (AMODE) 31 and the amode64 type attribute allows you to define a typedef of a function or function pointer type to operate in AMODE 64.

amode31 | amode64 function attribute syntax

Read syntax diagramSkip visual syntax diagram__attribute__(( amode31 | amode64 ))
The following example declares a typedef of function pointer foo that is in AMODE 64:
typedef void (*foo)(int) __attribute__ ((amode64));

For information on the METAL compiler option, see the METAL compiler option description in z/OS XL C/C++ User's Guide. For information on AMODE switching, see z/OS Metal C Programming Guide and Reference.