structure alignment on HCS08 uC

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

structure alignment on HCS08 uC

656 次查看
akasilov
Contributor I

Hi all! 

 

I am using MC9S08DZ60 uC.

Are the structures always aligned to the 1 byte boundary?  Meaning the sizeof operator will always yield the size of data members, no padding bytes? Am I right?

 

Thank you for your help.    

标签 (1)
0 项奖励
1 回复

291 次查看
CrasyCat
Specialist III

Hello

 

I assume you are using CodeWarrior compiler for building. Am I right?

 

If this is the case, yes, there is no alignment constraint applying to ANSI C structure on HCS08 microcontrollers.

 

CrasyCat

0 项奖励