linker feature to dynamically allocate objects to multiple segments
Hello,
I'm working with Freescale M0, M4 parts. One hardware restriction is that there can be no burst memory access across the two SRAM array boundary (usually 0x20000000). Currently the work-around is to modify the linker script to define two separate memory segments so that linker would not allocate objects across the boundary however user would have to manually place objects to separate sections thru __attribute_
Are you aware of other cortex-M parts that has this restriction? Is there any plan to support a feature where the linker could dynamically allocation objects to multiple segments thru special linker script syntax? e.g.:
sram_l (RW) : ORIGIN = 0x1FFF0000, LENGTH = 0x00010000
sram_u (RW) : ORIGIN = 0x20000000, LENGTH = 0x00010000
.data :
{
…
} > sram_l, sram_u
when sram_l is full, linker would start allocating objects to sram_u. Thus there would be no chance for objects to cross the segment boundary.
Thanks!
Henry
Question information
- Language:
- English Edit question
- Status:
- Answered
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Henry Cheang for more information if necessary.