[LLVMdev] Porting llvm-gcc-4.2
Thorsten Glaser
tg at mirbsd.de
Sun Nov 2 07:38:45 PST 2008
Hello,
how would I go porting llvm-gcc-4.2 to an “unknown” platform, i.e.
MirBSD? For regular gcc, I’d have to add stuff to gcc/gcc/config/
and patch quite some configure scripts, but seeing that llvm-gcc
uses LLVM for target specific stuff, how much of this still applies?
cpp defines and startup files at the least, probably, for the com-
piler driver…
Which dependencies does llvm-gcc-4.2 have, besides the usual gmake,
bison, working toolchain, gnat for building Ada, llvm? Specifically,
does it also have the hilarious library dependencies (gmp, mpfr, etc)?
What is the status of the other (besides C and C++) languages on
llvm-gcc-4.2 r58565? I’ve read that Ada fails and Fortran has issues.
How about ObjC, ObjC++, Java™?
Speaking of Ada: is gnat from gcc 3.4.6 enough to build gnat/gcc4?
Is there a recommended way to compile libstdc++ and libobjc to llvm
byte code only (instead of native code), both to enable the use of
more optimisations¹ and the use of the C back-end (possibly to create
a C-only bootstrap version of llvm and llvm-gcc to get rid of gcc/g++
in base and being able to use pcc to bootstrap llvm)?
① What’s this about link time optimisation being supported only on
Darwin anyway?
Do you have any other recommendations for me for porting llvm, clang
and llvm-gcc to MirBSD?
Thanks in advance!
bye,
//mirabilos
--
I believe no one can invent an algorithm. One just happens to hit upon it
when God enlightens him. Or only God invents algorithms, we merely copy them.
If you don't believe in God, just consider God as Nature if you won't deny
existence. -- Coywolf Qi Hunt
More information about the llvm-dev
mailing list