ARM_LIB_HEAP 和 ARM_LIB_STACK 分散装入描述



FLASH_LOAD 0x0000 0x00200000
{
VECTORS +0 0x400
{
* (:gdef:__vectab_stack_and_reset, +FIRST)
; Additional region for other vectors would be added here
}
;; Maximum of 256 exceptions (256*4bytes == 1024 == 0x400)
CODE 0x400 FIXED
{
* (+RO)
}
DATA 0x20000000 0x00200000
{
* (+RW, +ZI)
}
;; Heap starts at 1MB and grows upwards
ARM_LIB_HEAP 0x20100000 EMPTY 0x100000-0x8000
{
}
;; Stack space starts at the end of the 2MB of RAM
;; And grows downwards for 32KB
ARM_LIB_STACK 0x20200000 EMPTY -0x8000
{
}
}


–length
如果指定的长度为负值,则base_address 是区的结束地址。它通常与EMPTY一起使用,以表示在存储器中变
小的栈。






你可能感兴趣的:(MDK)