LARGE

Abbreviation

LA

Arguments

None.

Default

SMALL

Description

This directive controls the selection of the memory model to be implemented. In the LARGE memory model, all variables and local data segments of functions and procedures reside (as defined) in the external data memory of the 8051 system. Up to 64 KBytes of external data memory may be accessed. This however, requires the long and therefore inefficient form of data access through the data pointer (DPTR).

Regardless of memory model, variables may be declared to be in any of the 8051 memory ranges. However, place frequently used variables (such as loop counters and array indices) in internal data memory. This significantly improves system performance.

NOTE
The stack required for function calls is always placed in internal memory.

See Also
SMALL, COMPACT, ROM

Example


#pragma large