[cfe-dev] clang/Darwin/x86-64 status on the LLVM test & gcc "compat" test suites

Jean-Daniel Dupas devlists at shadowlab.org
Wed Feb 11 10:00:30 PST 2009


Le 11 févr. 09 à 18:12, Anders Carlsson a écrit :

>
> 11 feb 2009 kl. 09.02 skrev Fariborz Jahanian:
>
>> They are the same, except for the 64bit-ness of types. Here it is:
>>
>> struct __builtin_CFString {
>>       const int *isa;          (will point at
>> __CFConstantStringClassReference)
>>       int flags;
>>       const char *str;
>>       long length;
>>     };
>>
>> - Fariborz
>
> I did some testing of constant CFString/NSString layout in 64-bit and
> could not find any issues.
>
> Anders

OK, Look like auto padding from the compiler give the good struct, but  
the CF declaration is not the same for 32 and 64 bits:

typedef struct __CFRuntimeBase {
     uintptr_t _cfisa;
     uint8_t _cfinfo[4];
#if __LP64__
     uint32_t _rc;
#endif
} CFRuntimeBase;


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20090211/5c90c048/attachment.html>


More information about the cfe-dev mailing list