Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Altera_Forum
Honored Contributor I
1,001 Views

NIOS2 gcc compiler pragma for structure alignment

I've tried several variations of# pragma pack(push,1) but the compiler chokes on all of them. 

 

Does anyone know the correct syntax? Or can this only be done with variable attributes?
0 Kudos
1 Reply
Altera_Forum
Honored Contributor I
73 Views

I would stick to attributes, they are more universally adhered to. Here are some examples of the usage: https://gcc.gnu.org/onlinedocs/gcc-3.3/gcc/type-attributes.html

Reply