<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">These errors are from the assembler, not LLVM. Specifically, your binutils is too old. Given that it doesn't even recognize the ".syntax" directive, they're *very* much too old. You need to upgrade.<div>-Jim<br><div><br></div><div><br><div><div>On Sep 24, 2012, at 3:31 AM, 陳奕梅 <<a href="mailto:ymchen@sslab5.cs.nctu.edu.tw">ymchen@sslab5.cs.nctu.edu.tw</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">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>
_______________________________________________<br>LLVM Developers mailing list<br><a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu">http://llvm.cs.uiuc.edu</a><br><a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br></blockquote></div><br></div></div></body></html>