[cfe-dev] Target.cpp

Anton Korobeynikov anton at korobeynikov.info
Wed Sep 23 13:44:21 PDT 2009


Hello, John

> I'm not sure what you mean.  Do you mean something about the
> DescriptionString member?
No, target data is the same (modulo some different alignments)

> I basically had the Windows targets inherit the
> one from the existing X86_64TargetInfo class.  Does it need resetting for
> Windows?
Yes. Windows uses LLP64 data model, and all other sane world LP64 :)

Basically:
1. Windows:
sizeof(int) == sizeof(long) == 4
2. Everything else
sizeof(int) != sizeof(long)

see, e.g. http://technet.microsoft.com/en-us/library/bb496995.aspx for
more information
-- 
With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University




More information about the cfe-dev mailing list