Assembly Language Help (alang.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.
Compact Memory Model: Details
                                             Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
     The compact memory model allows a single segment for program code
     and multiple segments for program data. This memory model causes
     the assembler to produce files with the .EXE extension.
 
     Compact-model programs are limited to one code segment but can have
     several data segments. The defaults in compact-memory programs are
     NEAR code addressing and FAR data addressing. The PROC distance is
     FAR under the compact-model option. @CodeSize is 0, @DataSize is 1,
     and @Model is 3.
 
     See also: .MODEL
                                    -♦-