Source Files, Compilation, and Linking

All of the required structures can be obtained by writing the application in C Language, or by following the program structure produced by the C compiler. C code should be compiled with the following switches:

Applications generally should not use the standard run-time libraries, but should use System Manager Services wherever possible. Safe versions of library functions used by the various applications should be collected into a single source library, although each linked application will have its own copy of that code.

To test applications on a PC during development, the System Manager services are available through a TSR (TKERNEL.EXE). Applications can be developed as DOS programs which use the standard run-time library's startup code (CRT0, etc.). To convert the program into an application that can be launched directly by the System Manager, the startup code is replaced with the System Manager-specific startup code (SMCRT0) at link time. This .EXE may then be used as input to E2M, or used for testing under tkernel on the PC.