Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
Passing arguments between routines z/OS Language Environment Programming Guide for 64-bit Virtual Addressing Mode SA38-0689-00 |
||||||||||||||||
Language Environment-conforming
HLLs use the semantic terms by value and by
reference to indicate how changes in the argument values
for a called routine affect the calling routine:
Under Language Environment you
can pass arguments directly and indirectly as follows:
Table 1 summarizes the semantic terms by value and by reference and the direct and indirect methods for passing arguments. The table shows what is passed to routines.
Figure 1 illustrates these argument passing styles. In Figure 1, register 1 (R1) points to the value of an object, or to an argument list containing either a pointer to the value of an object or a pointer to the object. Figure 1. Argument
passing styles in Language Environment
HLL semantics usually determine when data is passed by value or by reference. The AMODE 64 support provided by Language Environment supports argument passing styles as shown in Table 2.
|
Copyright IBM Corporation 1990, 2014
|