|
| 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: | Class | Address Range |
|---|
| NCONST | 00000h-03FFFh | | NDATA | 04000h-07FFFh | | NDATA0 | 04000h-07FFFh | | SDATA | 0C000h-0FFFFh | | SDATA0 | 0C000h-0FFFFh | | IDATA | 0FA00h-0FDFFh | | IDATA0 | 0FA00h-0FDFFh | | BIT | 0FD00h-0FDFFh | | BIT0 | 0FD00h-0FDFFh | | BDATA | 0FD00h-0FDFFh | | BDATA0 | 0FD00h-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. |
Related Knowledgebase Articles |
|