Cygwin struct alignment
Mon Dec 29 16:59:00 GMT 2008
On Mon, 29 Dec 2008, Brian Ford wrote:
> The only major difference I'm aware of is that Cygwin defaults to 8 byte
> alignment for long long and double for performance reasons, while MSVC
> defaults to 4 byte alignment for those types I believe.
Actually, I remebered one more difference. I think MSVC bit fields don't
pack into padding holes left by variables of differing type and vice
versa. Hope that helps.
Staff Realtime Software Engineer
VITAL - Visual Simulation Systems
the best safety device in any aircraft is a well-trained crew...
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
More information about the Cygwin