|
|||||||||||||||
|
Technical Support On-Line Manuals Linker Reference Guide |
Linker Reference GuideScatterAssert function and load address related functions
The The load address related functions can only be used within
the Table 4. Load address related functions
The parameter The following example shows how to use the Example 11. Using ScatterAssert to check the size of multiple regions
LR1 0x8000
{
ER0 +0
{
*(+RO)
}
ER1 +0
{
file1.o(+RW)
}
ER2 +0
{
file2.o(+RW)
}
ScatterAssert((LoadLength(ER1) + LoadLength(ER2)) < 0x1000)
; LoadLength is compressed size
ScatterAssert((ImageLength(ER1) + ImageLength(ER2)) < 0x2000)
; ImageLength is uncompressed size
}
ScatterAssert(ImageLength(LR1) < 0x3000) ; Check uncompressed size of LoadRegion
| ||||||||||||||
|
|||||||||||||||