Why sram_bss is 16 bytes aligned?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Why sram_bss is 16 bytes aligned?

ソリューションへジャンプ
2,114件の閲覧回数
luhaiou
Contributor II

I use s32k3 RTD2.01,

file .ld in demo  

luhaiou_0-1692017796263.png

Why sram_bss is 16 bytes aligned? But  sram_data is 4byte aligned.

I wonder if sram_bss can be set to 4byte alignment, and if so, is there any bad effect?

Looking forward to your reply, thank you very much

 

0 件の賞賛
返信
1 解決策
1,980件の閲覧回数
Mehul_Patel_NXP
NXP Employee
NXP Employee

Hi, @luhaiou , 

 

Very sorry to replying very lately. 

 

Please let us know if the issue is resolved or not. 

.bss is uninitialized data and .data is initialized data - so, to initialize data, if you want to use memset(3) (or some such typical routine), to initialize in bulk, then, the 16 byte alignment is likely to facilitate the use of an optimized version of the routine. 

I hope this may help. 

Thank you. Best regards. 

- Mehul Patel 

 

 

元の投稿で解決策を見る

0 件の賞賛
返信
1 返信
1,981件の閲覧回数
Mehul_Patel_NXP
NXP Employee
NXP Employee

Hi, @luhaiou , 

 

Very sorry to replying very lately. 

 

Please let us know if the issue is resolved or not. 

.bss is uninitialized data and .data is initialized data - so, to initialize data, if you want to use memset(3) (or some such typical routine), to initialize in bulk, then, the 16 byte alignment is likely to facilitate the use of an optimized version of the routine. 

I hope this may help. 

Thank you. Best regards. 

- Mehul Patel 

 

 

0 件の賞賛
返信