[cfe-dev] Target.cpp

John Thompson john.thompson.jtsoftware at gmail.com
Wed Sep 23 18:08:04 PDT 2009


Anton,

Here's a patch for correcting the long size and align for Windows64.

-John

On Wed, Sep 23, 2009 at 1:44 PM, Anton Korobeynikov <anton at korobeynikov.info
> wrote:

> 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
>



-- 
John Thompson
John.Thompson.JTSoftware at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20090923/67d47022/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: windows64_long.patch
Type: application/octet-stream
Size: 437 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20090923/67d47022/attachment.obj>


More information about the cfe-dev mailing list