[LLVMdev] [Questions] clang cross compilation and SimpleScalar simulation
陳奕梅
ymchen at sslab5.cs.nctu.edu.tw
Mon Sep 24 03:31:34 PDT 2012
Hello,
I want to compile MiBench by clang, and the target-ISA is armv4. The code
generated using llvm-2.9, clang-2.9, and arm-linux-gcc (gcc version
2.95.2), simulator is sim-panalyzer 2.0.3 .
I use these commends:
$ clang -O3 -o hello.ll -c -emit-llvm hello.c
$ llc -O3 -o hello.s -march=arm -mcpu=strongarm1100 hello.ll
$ arm-linux-gcc -O3 -march=armv4 -mcpu=strongarm1100 -static
-mfloat-abi=soft hello.s -o hello
Unfortunately, I get some error messages:
hello.s: Assembler messages:
hello.s:1: Error: Unknown pseudo-op: `.syntax'
hello.s:2: Error: Unknown pseudo-op: `.eabi_attribute'
hello.s:3: Error: Unknown pseudo-op: `.eabi_attribute'
hello.s:4: Error: Unknown pseudo-op: `.eabi_attribute'
hello.s:5: Error: Unknown pseudo-op: `.eabi_attribute'
hello.s:6: Error: Unknown pseudo-op: `.eabi_attribute'
make: *** [all] Error 1
I want to know my cross-compiling commends is right?
Is there any open source ARM simulator (can emulate power consumption) that
I can use with clang?
P.S. Because I got error when I use arm-linux-gcc (gcc version 3.X or 4.X),
I use officially recommended version 2.95,2 .
Best regards, :)
Yi-Mei Chen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120924/c6cb2371/attachment.html>
More information about the llvm-dev
mailing list