| Electronic Components Datasheet Search |
|
UM0144 Datasheet(PDF) 24 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
UM0144 Datasheet(HTML) 24 Page - STMicroelectronics |
|
24 / 92 page ![]() 3 ST7 Assembler ST7 Assembler Linker 24/92 UM0144 Looking back to our example on page 22, you should now be able to see that the 'RAM0' class will allocate 80 to counter, 81 to address, 92 to stack in FILE1, and when the linker meets the segment in FILE2 of the same class, serialtemp will be allocated 93, and serialcou 94 . The same processing happens to the two 'eprom' class segments—the second, in FILE2, will be tacked on to the end of the first in FILE1. If the FILE2 'eprom' class segment had specified, say, the long align type instead of the default byte, then that segment would have been put on the next long-word boundary after the end of the FILE1 'eprom' class segment. Combine The <combine> argument tells the assembler and linker how to treat the segment. There are three types to handle it: The at-type <combine> must be used at the introduction of a class, only once. The at-type <combine> must have one argument: the start address of the class, and may optionally be given the end address (or limit) of the class too. If given, the linker checks that no items in the class have gone over the limit address; if this does occur, a warning is issued at link time. The hexadecimal numbers X and Y should not have radix specifiers. All common-type <combine> segments that have the same class name will start at the same address. The linker keeps track of the longest segment. common segments can be used for sharing data across different applications. Table 8. Alignment types Type Description Examples byte Any address word Next address on boundary 1001->1002 para Next address on 16-byte boundary 1001->1010 64 Next address on 64-byte boundary 1001->1040 128 Next address on 128-byte boundary 1001->1080 page Next address on 256-byte boundary 1001->1100 long Next address on 4-byte boundary 1001->1004 1k Next address on 1k-byte boundary 1001->1400 4k Next address on 4K-byte boundary 1001->2000 Table 9. Combine types Type Description at:X[-Y] Starts a new class from address X [to address Y] common All common segments that have the same class name will start at the same address. This address is determined by the linker. <none> Follows on from end of last segment of this class. |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |