 | C251 User's Guide |  |
|
|
| SMALL Compiler Directive| Abbreviation | SM | | Arguments | None. | | Default | TINY | | µVision | Options — C251 Compiler — Memory Model — Memory Model. | | Description | This directive implements the SMALL memory model. The SMALL memory model places all function variables and local data segments in the data memory of the 251 system. This ensures the most efficient access to data objects. The default data pointers size is 4 bytes which allows full access to the entire 251 address space. Regardless of memory model type, you may declare variables in any of the 251 memory areas. However, placing frequently used directives (such as loop counters and array indices) in data memory significantly improves system performance. Note - The stack required for function calls is always placed in near memory referred as the EDATA memory class.
- If your total variable space is less than 64 Kbytes, you should attempt to use the TINY memory model instead of SMALL. The TINY memory model increases execution speed and reduces code space requirements of your program.
| | See Also | HPTR | | Example |
C251 SAMPLE.C SMALL
#pragma small
|
|
|