Keil™, An ARM® Company

L166 User's Guide

Example 1

The following L166 Command Line:

L166 inputlist
     CLASSES (ICODE  (0x000000 - 0x007FFF),
              NCONST (0x004000 - 0x007FFF),
              NDATA  (0x008000 - 0x00BFFF),
              NDATA0 (0x008000 - 0x00BFFF),
              NCODE  (0x010000 - 0x01FFFF))
     CINITTAB (0x000000 - 0x007FFF)

Defines the memory areas for the following target system to the linker.

Memory
Type
Address
Range
Used By
ROM0x000000-0x007FFFInterrupt vectors, NEAR constants, and start-up code.
RAM0x008000-0x00FFFFNEAR data and system page.
ROM0x010000-0x01FFFFNEAR executable program code.

Note

  • XC16x/C16x/ST10 programs have a reset vector at address 0000h. Therefore, ROM must be located at address 0000h.
  • This program uses the SMALL memory model so all code is located in the NCODE class. FAR memory is not used.
  • The ?C_INITSEC and ?C_MEMCLRSEC sections must be placed in ROM space. This is done in a separate SECTIONS directive.