C/C++ Compiler (cl.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
Small Memory Model: Details
                                             Up Contents Index Back
─────C/C++ Compiler─────────────────────────────────────────────────────────
 
     Syntax:  /AS
 
     The small-model option creates a program that contains two
     segments: one for code and one for data. This memory model causes
     the compiler to produce files with the .EXE extension. The small
     memory model is the default if no other memory model is specified.
 
     Code and data are limited to 64K each. The total size of a small-
     model program cannot exceed 128K.
 
     The defaults in small-model programs are near code addressing and
     near data addressing. You can override the defaults with the __far
     keyword for code and the __far or __huge keyword for data.
     See: Overriding Default Addressing
 
     Using the /AS option causes CL to emit both the _M_I86 and the
     _M_I86SM preprocessor identifiers.
                                    -♦-