Nios® II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Announcements
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.
12421 Discussions

NIOS2 gcc compiler pragma for structure alignment

Altera_Forum
Honored Contributor II
1,127 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
199 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