[LLVMdev] Byte code portability (was Re: libstdc++ as bytecode, and compiling C++ to C)
Chris Lattner
sabre at nondot.org
Fri Nov 24 21:11:35 PST 2006
On Fri, 24 Nov 2006, Reid Spencer wrote:
>> return (ltmp_0_1 + 42u);
>> }
>>
>> unsigned is 16 bit on my target platform.
>
> Sure, but what is it on the target that llvm-gcc is configured for? If
> you're running llvm-gcc on a 32-bit platform without configuring it as a
This has nothing to do with cross compiling. The CBE always assumes that
unsigned is 32-bits. This is obviously false. It should emit uint32_t
references instead, but this requires pulling in <inttypes.h>, which it
can't do.
-Chris
--
http://nondot.org/sabre/
http://llvm.org/
More information about the llvm-dev
mailing list