
reside in the internal data memory of the 8051. This memory model generates
the fastest and the most ecient code and should be used whenever possible. In
the COMPACT memory model, all variables reside in one page of external
data memory. A maximum of 256 bytes of variables can be used. This memory
model is not as ecient as the SMALL model. In the LARGE memory model,
all variables reside in external data memory. A maximum of 64 Kbytes of data
can be used. The LARGE model generates more code than the other two
models and thus it is not very ecient.
Compiling in the SMALL memory model always generates the fastest and the
smallest code possible since ...