📄 ghs_ldscript.ld
字号:
//
// Program layout for running out of SDRAM. This mapping requires
// that the system be preconfigured with SDRAM mmemory remapped
// down to location 0x00000000. These examples
// cannot be programmed into FLASH without additional configuration.
//
// constants definition, LPD board memory
CONSTANTS
{
LPD_RAM_START = 0x20000000
LPD_CODE_OFFSET = 0xC0000
LPD_RAM_LENGTH = 32M
LPD_RAM_TOP_OFFSET = 0x10000
}
// Heap and stack size
CONSTANTS
{
heap_reserve = 1M
stack_reserve = 512K
}
// Memory organization
MEMORY {
dram_rsvd1 : ORIGIN = LPD_RAM_START, LENGTH = LPD_CODE_OFFSET
dram_memory : ORIGIN = ., LENGTH = LPD_RAM_LENGTH - LPD_RAM_TOP_OFFSET
}
// Memory code and data organization
SECTIONS
{
//
// The text segment
//
.reset : > dram_memory
.text : > .
.syscall : > .
.intercall : > .
.interfunc : > .
.fixaddr : > .
.fixtype : > .
.rodata : > .
.secinfo : > .
//
// The data segment
//
.pidbase ALIGN(16) : > .
.sdabase : > .
.sbss : > .
.sdata : > .
.data : > .
.bss : > .
.heap ALIGN(16) PAD(heap_reserve) : > .
.stack ALIGN(16) PAD(stack_reserve) : > .
.free_mem align(16) pad(0x10000) :
//
// These special symbols mark the bounds of RAM memory.
// They are used by the MULTI debugger.
//
__ghs_ramstart = LPD_RAM_START;
__ghs_ramend = LPD_RAM_LENGTH - LPD_RAM_TOP_OFFSET;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -