Chapter 11. Integrating External Routines

Table of Contents

Calls to External Routines
External Call Tables
External Call Parameter Passing
External Call Error Processing
Receiving String Arguments from External Routines
Compiling Procedures
Linking Procedures
Important Considerations for External Calls
External Call Example
Calls from External Routines

This chapter is divided into two sections. The first describes how to call external (non-GT.M) routines from routines written in GT.M. The second describes how to call routines written in GT.M from routines written in other languages.

The interfaces described in this chapter is built for efficiency and the called routines share the process memory space with the GT.M run-time library and the application code. This means that failure to observe proper coding practice in the called routines and the conventions described here is likely to result in difficult to diagnose failures occurring in places not directly related to the cause of the failure.