Use this system macro with C language support to:
- Produce a table of V-type address constants (VCONs) that contain the entry
points to the secondary library routines. This option is valid only in
the control program (CP) and is restricted to the CCLANG CSECT.
- Generate linkage to a particular secondary library routine from its
corresponding TPF-written library function.
Format
- label
- A symbolic name can be assigned to the macro statement.
- GEN
- This option is coded in the C language support CSECT (CCLANG) to generate
a table of VCONs used to link to the secondary library routines.
- LINK=fname
- The name of a service routine using MVS-style parameter and register
conventions. Code is produced to save registers, convert to IBM
MVS-style register conventions, generate the quick enter linkage for the
secondary library routines, and to convert back to TPF register conventions on
return.
Entry Requirements
R9 must contain the address of the current ECB.
Return Conditions
TPF register contents are restored. Registers R10 through R13 remain
unchanged.
Programming Considerations
This macro can be run on any I-stream.
Examples
This example generates the table of VCONs for secondary library
routines:
ICLANC GEN
This example generates linkage to the secondary library routine called by
the sin (sine) function:
ICLANC LINK=SIN