C struct memory layout?

Posted by Eonil on Stack Overflow See other posts from Stack Overflow or by Eonil
Published on 2010-05-01T05:18:19Z Indexed on 2010/05/01 5:27 UTC
Read the original article Hit count: 190

Filed under:
|
|

I have C# background. Very newbie to low level language like C. In C#, memory layout by compiler by default, and I have to specify some special attribute to override this behavior for exact layout.

As I know, C does not re-align by default. But I heard there's a little re-aligning behavior which very hard to find.

Can I know about C's memory layout behavior? (what should be re-aligned and not)

© Stack Overflow or respective owner

Related posts about c

    Related posts about struct