Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12600 Discussions

NIOS2 gcc compiler pragma for structure alignment

Altera_Forum
Honored Contributor II
1,671 Views

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 II
743 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

0 Kudos
Reply