This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Cygwin struct alignment


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:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]