 | LX51 User's Guide |  |
|
|
| Locating SegmentsAfter the linker combines partial segments it locates the resulting segment at a physical address. Segments are processed in order according to memory class and the order of the object files specified on the command line. Memory is allocated in the following order: - Register Banks and segments with absolute addresses.
- Segments specified in linker SEGMENTS directive.
- Segments with the BITADDRESSABLE relocation type and other BIT segments.
- All other segments with the DATA memory class.
- Segments with the IDATA, EDATA, and NCONST memory classes.
- Segments with the XDATA memory class.
- Segments with the CODE memory class and the INBLOCK relocation type.
- Other segments with the CODE and CONST memory classes.
- Segments with the ECODE, HCONST, and HDATA memory classes.
|
|