Compiling Procedures

Compiling Errors

Compile the external routine using the appropriate language processor. Refer to the manual that applies to the programming language of your external routine for compiling procedures.

Use the GT.M compiler to compile your M routine.

	$ MUMPS CAL
	

For more information on how to compile an M routine, refer to the "Program Development Cycle" chapter in this manual.

External call tables are processed as MACRO source files. MACRO source files have the default file extension of .MAR. Assemble the external call table source file using the DCL MACRO command. The LINK must reference the GT.M-supplied macro library, GTMZCALL.MLB, which contains functions to process external call tables. The following examples show two ways of including the library.

Example:

	$ MACRO GTMZCTAB.MAR+GTM$DIST:GTMZCALL.MLB/LIBRARY
	

This MACRO command explicitly references the macro library at the DCL command level.

Example:

	.title zctablexample
	.library "gtm$dist:gtmzcall.mlb"
	zcinit
	.
	.
	.
	.end
	

This external call table source includes a .LIBRARY directive at the beginning. In this case, the MACRO command does not need to include the library name.

Example:

	$ MACRO GTMZCTAB