Cygwin struct alignment

Brian Ford
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.

Brian Ford
Staff Realtime Software Engineer
VITAL - Visual Simulation Systems
FlightSafety International
the best safety device in any aircraft is a well-trained crew...

Unsubscribe info:
Problem reports:

More information about the Cygwin mailing list