structure alignment on HCS08 uC

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

structure alignment on HCS08 uC

624 Views
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.    

Labels (1)
0 Kudos
1 Reply

259 Views
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 Kudos