[LLVMdev] C back-end differences
Mohd-Hanafiah Abdullah
napi at axiomsol.com
Fri May 11 20:26:49 PDT 2007
On Fri, 2007-05-11 at 23:15 -0400, me22 wrote:
> On 11/05/07, Mohd-Hanafiah Abdullah <napi at axiomsol.com> wrote:
> > I've been looking for a C++ to C translator for quite some time.
> > The purpose is to support C++ for the compiler I developed targeting the
> > JVM. But the compiler I wrote only supports ANSI C (1989). So the C++
> > to C translator is needed, and among the options are as follows:
> > [...]
> > c) LLVM (tried, but the resulting C code is quite hairy, pardon the
> > expression)
> >
> So you just want to feed the C code to your C-to-JVM compiler? I don't
> understand why "hairy" code would be a problem for that usage.
>
> As a different option, how about writing a JVM backend for LLVM?
This is definitely an option too. Another one would be to write a JVM
backend for gcc. But, I think somebody tried many years ago and stopped
halfway (it's egcs-jvm I think). Does LLVM use RTL as intermediate
language like gcc does?
Thanks.
Napi
More information about the llvm-dev
mailing list