On Tue, 31 Aug 2010 14:03:41 PDT David Leimbach <leim...@gmail.com>
> On Tue, Aug 31, 2010 at 1:59 PM, Ori Bernstein <o...@eigenstate.org> wrote:
> 
> > LLVM is written in C++, so you'd need C++ support on plan 9 first. Probably
> > the easiest way to do that would be to add support for plan 9 binaries to
> > clang, and cross-compile llvm for plan 9 with itself.
> >
> >
> Yep.  I was thinking a cross compile of clang to Plan 9 would be the
> starting point once LLVM is self-hosting (Is it?)

You can do this:

$ clang -c -emit-llvm foo.c -o foo.bc   # llvm format output
$ llc -march=c foo.bc -o bar.c          # C output

No idea if the resulting .c file is compilable with plan9 C!
For a real port you'd need to add plan9 a.out format support
to llvm. Or add ELF support to plan9 :-)

> Likewise.  In the meantime it'd be nice to be able to build even just a
> cross compiler to target Plan 9 :-).

I am interested.

Reply via email to