| ||||||||
Technical Support On-Line Manuals LX51 User's Guide | Overlaying Data MemoryData and bit segments marked as OVERLAYABLE may overlap the same physical memory space. By default, the Keil Cx51 Compiler and the Intel PL/M-51 Compiler store program arguments and local variables in fixed, overlayable memory rather than on the hardware stack. There are two reasons for this:
There are several benefits to overlaying data space rather than using the stack:
To accomplish overlaying, the linker analyzes all references (calls) between the various functions in the program. Using this information the linker determines precisely which data and bit segments may be overlaid. The following table describes all LX51 Linker/Locator directives that affect data overlaying.
Note
| |||||||
| ||||||||