Using foreign language sources

The environment is capable of compiling an assembly languagesource file and/or C source files. It does this via foreign modules. For these moduletypes the Modula-2 definition module or Ada95 package specification are paired withan implementation which is either assembler or C/C++. These modules behave no differentthan native language modules. The environment handles these modules automaticallyas it does for all other modules. The only difference is what compiler is used tocompile the file.

You need to specify a command line for the environment to usewhen compiling your foreign source file.

This can be specified in two ways

If your foreign source has any dependencies on the native languageruntime system or external libraries then you will link those library files whenlinking your program. Refer to the topic Using third partylibraries supplied in OBJ or LIB form for information on how to link such files.