[LLVMdev] [Questions] clang cross compilation and SimpleScalar simulation

陳韋任 (Wei-Ren Chen) chenwj at iis.sinica.edu.tw
Mon Sep 24 23:59:32 PDT 2012

On Tue, Sep 25, 2012 at 02:27:48PM +0800, 陳奕梅 wrote:
> I tried llvm/clang-3.1 previously. It was not work, so I use version 2.9 now.
  What the problem you have? Have you tried svn instead? I think
it's better to use svn head and report any problem you have, since
people *only* care about the latest version. Anyway, try commands

$ clang -ccc-host-triple armv4-none-linux-gnueabi -c hello.c -emit-llvm -o hello.bc
$ llc -O3 -o hello.s -march=arm -mcpu=strongarm1100 hello.bc
$ arm-unknown-linux-gnueabi-gcc -mcpu=strongarm1100 hello.s -static -O3 -o hello

Do you use the same C libraray for Clang and GCC?


Wei-Ren Chen (陳韋任)
Computer Systems Lab, Institute of Information Science,
Academia Sinica, Taiwan (R.O.C.)
Tel:886-2-2788-3799 #1667
Homepage: http://people.cs.nctu.edu.tw/~chenwj

More information about the llvm-dev mailing list