Forum Discussion
Altera_Forum
Honored Contributor
9 years agoNIOS2 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?
Altera_Forum
Honored Contributor
9 years agoI 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