search for: somepacket

Displaying 2 results from an estimated 2 matches for "somepacket".

Did you mean: sol_packet
2016 Jan 18
3
[cfe-dev] RFC: Enforcing pointer type alignment in Clang
...t adopted by 90% of projects. I’ve had the misfortune to look at a lot of code that does unaligned access over the last few years. By far the most common reason for it that I’ve seen is networking code that uses packed structures to represent packets. For example: __attribute__((packed)) struct somePacket { uint8_t a; uint32_t b; // ... }; In your model, what happens when: - I use field b directly? - I take the address of field b and store it in an int* variable? David
2016 Jan 15
2
[cfe-dev] RFC: Enforcing pointer type alignment in Clang
(Sorry for the duplicate mail, Richard, I accidentally sent a copy only to you before.) On Thu, Jan 14, 2016 at 10:26 PM, Richard Smith via cfe-dev < cfe-dev at lists.llvm.org> wrote: > [1]: That's not completely true, as it's possible to create an object > that is underaligned for its type: > > struct __attribute__((packed)) A { > char k; > struct B { int n;