We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi,I need to sort address and size aligned symbols in the memory section by descending size using ARM Compiler scatter file.In GNU toolchain this is easily achieved by using SORT_BY_ALIGNMENT keyword in the linker script.
In ARM compiler scatter file the memory section looks as below:
SRAM_SORTED +0 ALIGN 0x1000 UNINIT { *(.bss.*sorted_*) }
In armlink user guide there are options like --any_sort_order and SORTTYPE, which do not produce descending size sorting for the section though.
Please, suggest what should be the configuration for the linker to produce the needed result?
Hi Peter,
Have you considered migrating to the Arm Toolchain for Embedded (ATfE) Open Beta? The linker in that toolchain might be better for meeting your needs. See
https://developer.arm.com/documentation/110032/200000/Release-overview/Migrating-your-existing-ACfE6-project-to-the-ATfE-Open-Beta
Hi Kevin,Thanks for the suggestion.First option is to find a solution for the ARM Compiler toolchain, as the migration of the existing projects is quite a process.
Hi,
I have further Investigated padding issue for the RTOS task's stack section, when attribute aligned is used for the stack objects.
Is it planned to remove the max limit for the alignment (e.g. allow 8KB alignment in sorting algorithm) and fix this in the upcoming Arm Compiler release?