2020-01-11 04:31 AM
Default linker script created with new SPC5Studio project (SPC560BCxxx in my case) aligns code on 16-byte boundary.
This is a part of default linker script (application.ld/user.ld):
.text_vle : ALIGN(16) SUBALIGN(16)
{
*(.text_vle)
*(.text_vle.*)
*(.gnu.linkonce.t_vle.*)
*(.vletext)
"*(.vletext.*)"
"*(.ghs.linkonce.t_vle.*)"
} > flash
.text : ALIGN(16) SUBALIGN(16)
{
*(.text)
*(.text.*)
*(.gnu.linkonce.t.*)
} > flash
.rodata : ALIGN(16) SUBALIGN(16)
{
*(.glue_7t)
*(.glue_7)
*(.gcc*)
*(.rodata)
*(.rodata.*)
*(.rodata1)
} > flash
Are there any contraindications to change alignment to 4-byte based?
Since my program contains a lot of tiny functions, I waste a lot of memory space between these functions.
Solved! Go to Solution.
2020-02-03 04:37 AM
Hello,
there is no issue to align text sections to 4bytes boundary.
Actually the code in SPC5Studio shall be updated to reflect this.
Regards,
Giuseppe
2020-01-14 07:19 AM
Hello ,
I do not see no issue by updating the alignment in 4-bytes in e200z0.pdf and BookE
Anyway , i am checking with experts.
The ticket is Submitted
Best regards
Erwan
2020-02-03 04:37 AM
Hello,
there is no issue to align text sections to 4bytes boundary.
Actually the code in SPC5Studio shall be updated to reflect this.
Regards,
Giuseppe
2020-02-04 01:20 AM
Thank you, Giuseppe