Hello,<div><br></div><div>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 .</div><div>
<br></div><div>I use these commends:</div><div><br></div><div><div>$ clang -O3 -o hello.ll -c -emit-llvm hello.c</div><div>$ llc -O3 -o hello.s -march=arm -mcpu=strongarm1100 hello.ll</div></div><div>$ arm-linux-gcc -O3 -march=armv4 -mcpu=strongarm1100 -static -mfloat-abi=soft hello.s -o hello</div>
<div><br></div><div>Unfortunately, I get some error messages:</div><div><br></div><div><div>hello.s: Assembler messages:</div><div>hello.s:1: Error: Unknown pseudo-op:  `.syntax'</div><div>hello.s:2: Error: Unknown pseudo-op:  `.eabi_attribute'</div>
<div>hello.s:3: Error: Unknown pseudo-op:  `.eabi_attribute'</div><div>hello.s:4: Error: Unknown pseudo-op:  `.eabi_attribute'</div><div>hello.s:5: Error: Unknown pseudo-op:  `.eabi_attribute'</div><div>hello.s:6: Error: Unknown pseudo-op:  `.eabi_attribute'</div>
<div>make: *** [all] Error 1</div></div><div><br></div><div><div>I want to know my cross-compiling commends is right?</div><div>Is there any open source ARM simulator (can emulate power consumption) that I can use with clang?</div>
<div><br></div><div>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 .</div><br><div style="color:rgb(34,34,34);font-size:14px;background-color:rgb(255,255,255)">
<font face="trebuchet ms, sans-serif">Best regards, :)</font></div><div style="color:rgb(34,34,34);font-size:14px;background-color:rgb(255,255,255)"><font face="trebuchet ms, sans-serif"><br></font></div><div style="color:rgb(34,34,34);font-size:14px;background-color:rgb(255,255,255)">
<font face="trebuchet ms, sans-serif">Yi-Mei Chen</font><span style="font-family:'trebuchet ms',sans-serif"> </span></div><div style="color:rgb(34,34,34);font-size:14px;background-color:rgb(255,255,255)"><span style="font-family:'trebuchet ms',sans-serif"><br>
</span></div>
</div>