[LLVMdev] wxGTK sample app compiled by llvm crashes on arm
Anton Korobeynikov
anton at korobeynikov.info
Fri Dec 3 05:01:28 PST 2010
> I am using llvm-2.7 to run a native(executable) on a arm processor.
ARM was pretty much broken in 2.7. Consider using at least 2.8
> ../llvm-gcc-4.2-2.7.source/configure --prefix=/home//gcc-disable-shared --enable-languages=c++,c --enable-checking --enable-llvm=/home/ llvm-objects --disable-bootstrap --disable-multilib
You have to configure llvm-gcc as cross-arm compiler.
> Step 1. llvm-gcc -O3 -emit-llvm minimal.cpp -c -o minimal.bc `wxconfig –cxxflags`
> Step 2. llc minimal.bc –march=arm –o minimal.s (for generating arm assembly code)
This won't work. You're trying to codegen x86 IR for ARM.
--
With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University
More information about the llvm-dev
mailing list