C/C++ Compiler (cl.hlp) (Table of Contents; Topic list)
Small Memory Model (/AS)
                                             Up Contents Index Back
─────C/C++ Compiler─────────────────────────────────────────────────────────
 
     Your choice of a memory model determines how memory is set up for
     program code and data.
 
     Microsoft C offers seven models to choose from.
 
                   ┌─────────────── Small ───────────────┐
     Tiny        │   All function calls are near (code │
     Small       │   all in one segment), and all data │
     Medium      │   pointers are near (data all in    │
     Compact     │   one segment). The command-line    │
     Large       │   equivalent is /AS.                │
     HugeMore InfoCustomize   │                                     │
                   │                                     │
                   └─────────────────────────────────────┘
                                    -♦-