[cfe-dev] Differences between linux and macosx
Chris Lattner
clattner at apple.com
Mon Jun 16 13:33:40 PDT 2008
On Jun 16, 2008, at 1:31 PM, Filipe Cabecinhas wrote:
>
> On 16 Jun, 2008, at 20:27, Chris Lattner wrote:
>
>> size_t is 32-bits on a 32-bit platform.
>
>
> So, I suppose only code compiled with 64-bits (through -m64 which
> seems default on linux but not on macosx) would have that error.
> And ccc will just ignore -m64 when I pass it because it doesn't
> error (on macosx) nor does it produce 64-bit code.
>
> Is there a way to make it produce 64-bit code?
Oh right. This was certainly a problem on darwin/x86-64, it's just
that darwin defaults to 32-bit. You can use "-arch x86_64" to get
x86-64 codegen (though this is not well tested). I agree that -m64
and -m32 should also work, of course.
-Chris
More information about the cfe-dev
mailing list