The external call table is a data structure that GT.M uses to:
Translate the invoked external routine name into the actual external routine name.
Determine how to handle the information returned by the external routine in registers used by the calling standard for return values. The VMS Calling Standard specifies the return register(s) are used for returning status information or simple values.
Build the argument list for the external routine using the external call arguments.
Build the return argument for the external call using the outputs from the external routine.
Specify argument data types and passing mechanisms for data passed in both directions.
Specify default and constant values not provided by other components.
Reorder parameters, if necessary, from their order in the M external call to the order used in the actual external routine.