[LLVMdev] Byte code portability (was Re: libstdc++ as bytecode, and compiling C++ to C)

Reid Spencer rspencer at reidspencer.com
Fri Nov 24 11:39:46 PST 2006


Hi Philipp,

On Fri, 2006-11-24 at 20:09 +0100, Philipp Klaus Krause wrote:
> Reid Spencer schrieb:
> 
> > Note that C and LLVM types are *not* the same things (despite the
> > similar names). We are in the process of making this abundantly clear.
> > The LLVM IR will soon use names like i8, i16, i32, and i64 (signless
> > integer quantities of specific sizes, regardless of platform).
> 
> I had explicitly specified the size in the input code using a uint32_t
> type, the resulting C code used short, which is smaller on my target
> platform.

One would think that it should result in a 32-bit unsigned type but its
hard to say without something concrete. Can you supply a small,
pre-processed example of some code that results in a CBE short for an
input C/C++ uint32_t ?

> 
> Philipp
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev




More information about the llvm-dev mailing list