[LLVMdev] Byte code portability (was Re: libstdc++ as bytecode, and compiling C++ to C)
Philipp Klaus Krause
pkk at spth.de
Thu Nov 23 12:09:28 PST 2006
Reid Spencer schrieb:
> On Thu, 2006-11-23 at 19:10 +0100, Philipp Klaus Krause wrote:
>> Pertti Kellomäki schrieb:
>>> Chris Lattner wrote:
>>>> Many aspects of the target compiler can leak through.
>>> So if one wants to use the LLVM system as a cross compiler, one
>>> has to configure llvm-gcc as a cross compiler? Fair enough, I guess.
>> I hope the C backend is still meant to generate portable code though.
>
> It generates C99. Its portability is no better or worse than any other
> backend.
Does that mean that I will have to configure llvm as a cross-compiler
even when using the C backend?
I want to use LLVM to translate C++ into C and compile the resulting C
code using sdcc.
I already noticed some problems (resulting C code uses different data
types than input).
Philipp
More information about the llvm-dev
mailing list