CODE Linker Directive
Abbreviation | CO | ||||||
Arguments | CODE (〚range〛 〚segment 〚(address)〛 〚, ...〛〛) | ||||||
Default | None. | ||||||
µVision | Options — BL51 Locate — Code Range. | ||||||
Description | The CODE directive specifies:
This directive is specified as follows: CODE (〚range, ...〛 〚segment 〚(address)〛 〚, ...〛〛)
Where
Note
| ||||||
See Also | |||||||
Example | The example below specifies that relocatable CODE segments be located in the address space 0 – 0x3FFF and 0x8000 – 0xFFFF: BL51 MYPROG.OBJ CODE(0 - 0x3FFF, 0x8000 - 0xFFFF)
To specify the order for segments, you must include the names of the segments separated by commas. The following example will place the ?PR?FUNC1?A and ?PR?FUNC2?A segments at the beginning of the CODE memory: BL51 A.OBJ CODE(?PR?FUNC1?A, ?PR?FUNC2?A)
You can also specify the memory location for a segment. The example below will place the ?PR?FUNC1?A segment at 800h and the ?PR?FUNC2?A segment after at this segment: BL51 A.OBJ CODE(?PR?FUNC1?A (0x800), ?PR?FUNC2?A) reference: http://www.keil.com/support/man/docs/bl51/bl51_code.htm |