Most C and C++ programs make function calls to the routines in the C run-time library. When you write mixed-model programs, you are responsible for determining which library (if any) is suitable for your program and for ensuring that the appropriate library is linked. Table 4.3 shows the libraries from which to extract the startup routine for each customized memory model.
Table 4.3 Startup Routines for Customized Memory Models
Memory-Model Option | From Library |
/Asnx; /AS plus /Ax | SLIBCf.LIB |
/Asfx; /Ashx; /AC plus /Ax | CLIBCf.LIB |
/Alnx; /AM plus /Ax | MLIBCf.LIB |
/Alfx; /Alhx; /AL plus /Ax; /AH plus /Ax | LLIBCf.LIB |
The /Ax option represents either /Au or /Aw. In the library names, f is either E (emulator library), 7 (8087/80287 library), or A (alternate math library).