Keil™, An ARM® Company

L166 User's Guide

CLASSES Linker Directive

Abbreviation CL
Arguments CLASSES (classname « (range « , range ») » « , ... »)
Default See Below.
µVision Options — L166 Locate — User Classes.
Description 

The CLASSES directive allows you to specify an address range (range) for a class (classname). This directive is used to define the memory layout of your application program.

Refer to Defining Physical Memory for more information about defining the memory layout of your program.

The L166 Linker uses the following default class settings if no explicit class ranges are specified:

ClassAddress Range
NCONST00000h-03FFFh
NDATA04000h-07FFFh
NDATA004000h-07FFFh
SDATA0C000h-0FFFFh
SDATA00C000h-0FFFFh
IDATA0FA00h-0FDFFh
IDATA00FA00h-0FDFFh
BIT0FD00h-0FDFFh
BIT00FD00h-0FDFFh
BDATA0FD00h-0FDFFh
BDATA00FD00h-0FDFFh
See Also DPPUSE, GROUPS, SECTIONS
Example 
L166 myfile.obj CLASSES (NDATA0(0x20000-0x23FFF), &
                         NDATA (0x20000-0x21FFF))

This example specifies a range of 0x20000-0x23FFF for sections with the NDATA0 classname and a range of 0x20000-0x21FFF for sections with the NDATA classname.