Table of Contents
Previous topic Next topic
C COMPILER->Compiler Command Line Options->Tiny Memory Model (/AT)
This option tells the compiler to use the tiny memory model. All objects are then placed in internal data memory except as follows:
- objects declared as const are placed in code memory
- string literals are placed in code memory
- _bit objects are placed in bit addressable internal ram
- objects qualified by a memory space qualifier are located in the specified memory space
In addition, the _xdata memory space qualifier is disabled (no objects are allowed in external data memory) and all jumps and calls use the AJMP and ACALL instructions if they would otherwise be LJMP or LCALL. Only 2k bytes of code are supported. The programmer should ensure that the linker options are set to ensure this otherwise an invalid program might result.
The Philips chips 8XC750, 8XC748, 8XC751, 8XC749 and 8XC752 all require this memory model since they do not support the LCALL, LJMP or MOVX instructions.