pragma option for packed

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

pragma option for packed

613 Views
preetuabraham
Contributor III

Hi,

 

I would like to know the settings for changing this pragma to a different below in Code warrior 10.x for Cold fire processor MC5485 processor ,since the below line is throwing an error that it is an illegal pragma

 

//#pragma options align=packed.  This was working in Metrowerks Codewarrior

 

Whether we can use #pragma options align= coldfire instead of the packed

Labels (1)
0 Kudos
Reply
1 Reply

439 Views
preetuabraham
Contributor III

Hi,

As per the MCU_Codlfire_Compiler.pdf(page no:355), I think the equivalent pragma directive is

#pragma pack (0 | n | push | pop) , where n  is 1, 2, 4, 8, or 16.

So anyone from Codewarrior ,correct me if I am wrong .

Pelase clarify whether if n is 2 ,whether it is 2 byte alignment for structures and if n is 4 ,whether it is 4 byte alignment for structures

0 Kudos
Reply