Top "Packed" questions

What is a "packed" structure in C?

I am going though some C code written for the Microchip C30 compiler and I often see structs defined as …

c microcontroller packed
Packed bit fields in c structures - GCC

I am working with structs in c on linux. I started using bit fields and the "packed" attribute and I …

c gcc struct bit-fields packed
Printing packed structs in System Verilog

I have a packed struct defined as shown below typedef struct packed { logic bit1; logic [7:0] byte1; } MyPackedStruct; MyPackedStruct myPackedStruct; Is …

printing struct verilog system-verilog packed
Are packed structs portable?

I have some code on a Cortex-M4 microcontroller and'd like to communicate with a PC using a binary protocol. Currently, …

c++ c gcc struct packed
Why can't I return a reference to a packed field?

I use g++ to compile code with packed fields. However, I receive an error when trying to return a reference …

c++ c++11 gcc reference packed