structure alignment on HCS08 uC

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

structure alignment on HCS08 uC

710件の閲覧回数
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 返信

345件の閲覧回数
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 件の賞賛
返信