Table of Contents
Previous topic Next topic
C COMPILER->8051 Specific Features->Default Memory Space Usage
Unless a memory space qualifier is used, the Crossware 8051 ANSI C compiler will place objects in the following locations:
- if an object is declared as _bit it is placed in bit-addressable data memory unless it is an automatic variable in a reentrant function when it is quietly converted to an unsigned char
- string literals are placed in program memory
otherwise:
- if an object is declared as const it is placed in program memory
otherwise:
- if the small or tiny memory model is the default memory model the object is placed in internal indirectly addressable data memory
- if the large memory model is the default memory model, the object is placed in external data memory