C/C++ Compiler (cl.hlp) (Table of Contents; Topic list)
Tiny Memory Model: Details
                                             Up Contents Index Back
─────C/C++ Compiler─────────────────────────────────────────────────────────
 
     Syntax:  /AT
 
     The tiny-model option creates a program with the .COM extension.
     The program contains a single segment for both code and data. Code
     and data combined are limited to 64K.
 
     Both code and data items are accessed with near addresses. You
     cannot use libraries that contain far functions, such as the
     graphics libraries, in tiny-model programs.
 
     The .COM files load only under DOS. Also, there is no p-code
     support for the tiny model.
 
     Tiny-model programs use memory in the same way as small-model
     programs. But with the tiny model, the linker combines CRTCOM.LIB
     with the object file. The resulting executable file is a .COM file
     instead of a .EXE file.
 
     Using the /AT option causes CL to emit both the _M_I86 and the
     _M_I86TM preprocessor identifiers.
 
     See also: Custom Tiny Memory Model
               Overriding Default Addressing
                                    -♦-