[LLVMdev] Using LLVM as a crosscompiler

Anton Korobeynikov asl at math.spbu.ru
Sun Apr 1 13:12:28 PDT 2007


Hello, Koen.

> So my question is: How should I build llvm and llvm-gcc4 to have it cross-compile from x86
> to ARM/EABI?
Well, just supply appropriate --host/--target options to configure. 
I haven't tried ARM, but this definitely works for crosscompiling from
linux to mingw32. Please also note, that you'll need native (=arm) tools
(binutils, libcheaders, etc) during gcc build process.
-- 
With best regards, Anton Korobeynikov.

Faculty of Mathematics & Mechanics, Saint Petersburg State University.





More information about the llvm-dev mailing list