Hi,
Cezar has left the following comment at Research offset macro consolidation
http://www.google-melange.com/gci/task/view/google/gci2012/8172202:
Code
I've written a small program to test offsetof with bitfields. I tried
different numbers, placing the char array in different places, and
compiling with both gcc 4.2 and llvm 3.1, and the numbers were always equal
http://slexy.org/view/s20ovFFvuX. As for non-byte-aligned values, I tried
adding a `#pragma pack` before the struct and also got the same two
numbers. And I read this http://c-faq.com/struct/align.esr.html. As far as
I understand, it says that newer compilers don't need to worry about this.
Is it relevant? Seems a bit old.
Greetings,
The Google Open Source Programs Team
---
You are receiving this message because you are subscribed to Research
offset macro consolidation.
To stop receiving these messages, go to:
http://www.google-melange.com/gci/task/view/google/gci2012/8172202.
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122412
_______________________________________________
BRL-CAD Tracker mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-tracker