The SECTIONS Directive
7-36
Blocking
uses the block keyword to specify that the section must fit
between two address boundaries: if the section is too big, it
will start on an address boundary.
.text: block(0x80)
Page
specifies the memory page to be used (see Section 7.11,
Overlay Pages, on page 7-48).
.text: PAGE 0
For the load (usually the only) allocation, you may simply use a greater-than
sign and omit the load keyword:
.text: > ROM .text: {...} > ROM
.text: > 0x1000
If more than one parameter is used, you can string them together as follows:
.text: > ROM align 16 PAGE 2
Or, if you prefer, use parentheses for readability:
.text: load = (ROM align(16) page (2))
7.8.3.1
Binding
You can supply a specific starting address for an output section by following
the section name with an address:
.text: 0x1000
This example specifies that the .text section must begin at word location
1000h. The binding address must be a 16-bit constant.
Output sections can be bound anywhere in configured memory (assuming
there is enough space), but they cannot overlap. If there is not enough space
to bind a section to a specified address, the linker issues an error message.
Note:
Binding and Alignment or Named Memory are Incompatible
You cannot bind a section to an address if you use alignment or named
memory. If you try to do so, the linker issues an error message.
Содержание TMS320C54x
Страница 38: ......
Страница 39: ......
Страница 40: ......
Страница 41: ......
Страница 42: ......
Страница 43: ......
Страница 44: ......
Страница 45: ......
Страница 46: ......
Страница 47: ......
Страница 48: ......
Страница 49: ......
Страница 50: ......
Страница 51: ......
Страница 52: ......
Страница 53: ......
Страница 54: ......
Страница 55: ......
Страница 56: ......
Страница 57: ......
Страница 58: ......
Страница 59: ......
Страница 60: ......
Страница 61: ......
Страница 62: ......
Страница 276: ......
Страница 277: ......
Страница 278: ......
Страница 279: ......
Страница 280: ......
Страница 281: ......
Страница 282: ......
Страница 283: ......
Страница 284: ......
Страница 285: ......
Страница 286: ......
Страница 287: ......
Страница 288: ......
Страница 289: ......
Страница 290: ......
Страница 291: ......
Страница 292: ......
Страница 293: ......
Страница 294: ......
Страница 295: ......
Страница 296: ......
Страница 297: ......
Страница 298: ......
Страница 299: ......
Страница 300: ......
Страница 301: ......
Страница 302: ......