Hello,
I have a question on the Linker Command File for the TMS320F28069F device.
Specifically it is on the SECTIONS section.
Generally the code for the SECTIONS section seems to begin as follows:
--------------------------------------------------------------------------------
SECTIONS
{
/* Allocate program areas: */
.cinit : > FLASHA_B, PAGE = 0
.pinit : > FLASHA_B, PAGE = 0
.text : > FLASHA_B, PAGE = 0
codestart : > BEGIN, PAGE = 0
ramfuncs : LOAD = FLASHD,
RUN = RAML0_1,
LOAD_START(_RamfuncsLoadStart),
LOAD_END(_RamfuncsLoadEnd),
RUN_START(_RamfuncsRunStart),
PAGE = 0
--------------------------------------------------------------------------------
Meanwhile the code for the SECTIONS section may begin as follows:
-----------------------------------------------------------------------------------------------
SECTIONS
{
/* Allocate program areas: */
.cinit : > FLASHA_B, PAGE = 0, ALIGN(4)
.pinit : > FLASHA_B, PAGE = 0, ALIGN(4)
.text : > FLASHA_B, PAGE = 0, ALIGN(4)
codestart : > BEGIN, PAGE = 0, ALIGN(4)
ramfuncs : LOAD = FLASHD,
RUN = RAML0_1
LOAD_START(_RamfuncsLoadStart),
LOAD_END(_RamfuncsLoadEnd),
RUN_START(_RamfuncsRunStart),
PAGE = 0, ALIGN(4)
---------------------------------------------------------------------------------------
The difference between both codes is on the usage of ALIGN(4).
Please inform me on the usage of ALIGN(4).
What is the favor for using the ALIGN(4).
Thank you for your guidance.
With regards,
G. Kim