<div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px;background-color:rgb(255,255,255)">Dear all</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px;background-color:rgb(255,255,255)">
<br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px;background-color:rgb(255,255,255)">The reason for using SimpleScalar is that the project, Sim-panalyzer, based on SimpleScalar can estimate power consumption.</div>
<div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px;background-color:rgb(255,255,255)">If anybody know the other simulators that can  estimate power consumption, please contact to me ! Thanks a lot.</div>
<div class="im HOEnZb adL" style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:14px;background-color:rgb(255,255,255)"><div><br></div><div><div style="color:rgb(34,34,34)"><font face="trebuchet ms, sans-serif">Best regards, :)</font></div>
<div style="color:rgb(34,34,34)"><font face="trebuchet ms, sans-serif"><br></font></div><div style="color:rgb(34,34,34)"><font face="trebuchet ms, sans-serif">Yi-Mei Chen</font></div></div></div><br><div class="gmail_quote">
2012/9/26 Jim Grosbach <span dir="ltr"><<a href="mailto:grosbach@apple.com" target="_blank">grosbach@apple.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF"><div>Simplescalar is not compatible with llvm because the binutils simplescalar is based on is ancient.</div><span class="HOEnZb"><font color="#888888"><div><br></div></font></span><div><span class="HOEnZb"><font color="#888888">Jim</font></span><div>
<div class="h5"><br><br>On Sep 26, 2012, at 12:21 AM, 陳奕梅 <<a href="mailto:ymchen@sslab.cs.nctu.edu.tw" target="_blank">ymchen@sslab.cs.nctu.edu.tw</a>> wrote:<br><br></div></div></div><div><div class="h5"><div></div>
<blockquote type="cite"><div>Dear all<div><br></div><div>I use arm-linux-gcc 2.95.2, because the code generated by version 3.X and 4.X can not run on SimpleScalar. </div><div>So I use the arm-linux-gcc 2.95.2 *only*, the version is recommended by SimpleScalar.</div>

<div>The code generated by arm-linux-gcc 2.95.2 can run on SimpleScalar.</div><div>Now I want to use llvm/clang to generate ARM assembly code and arm-linux-gcc 2.95.2 to be assembler.</div><div>Unfortunately, I got some error messages below :</div>

<div><br></div><div><div style="color:rgb(34,34,34);font-size:14px;font-family:arial,sans-serif">hello.s: Assembler messages:</div><div style="color:rgb(34,34,34);font-size:14px;font-family:arial,sans-serif">
hello.s:1: Error: Unknown pseudo-op:  `.syntax'</div><div style="color:rgb(34,34,34);font-size:14px;font-family:arial,sans-serif">hello.s:2: Error: Unknown pseudo-op:  `.eabi_attribute'</div>
<div style="color:rgb(34,34,34);font-size:14px;font-family:arial,sans-serif">hello.s:3: Error: Unknown pseudo-op:  `.eabi_attribute'</div><div style="color:rgb(34,34,34);font-size:14px;font-family:arial,sans-serif">
hello.s:4: Error: Unknown pseudo-op:  `.eabi_attribute'</div><div style="color:rgb(34,34,34);font-size:14px;font-family:arial,sans-serif">hello.s:5: Error: Unknown pseudo-op:  `.eabi_attribute'</div>
<div style="color:rgb(34,34,34);font-size:14px;font-family:arial,sans-serif">hello.s:6: Error: Unknown pseudo-op:  `.eabi_attribute'</div><div style="color:rgb(34,34,34);font-size:14px;font-family:arial,sans-serif">
make: *** [all] Error 1</div></div><div style="color:rgb(34,34,34);font-size:14px;font-family:arial,sans-serif"><br></div><div style="color:rgb(34,34,34);font-size:14px;font-family:arial,sans-serif">
Then I try commends :</div><span style="color:rgb(34,34,34);font-size:14px;font-family:arial,sans-serif">$ clang -ccc-host-triple armv4-none-linux-gnueabi -c hello.c -emit-llvm -o hello.bc</span><br style="color:rgb(34,34,34);font-size:14px;font-family:arial,sans-serif">

<span style="color:rgb(34,34,34);font-size:14px;font-family:arial,sans-serif">$ llc -O3 -o hello.s -march=arm -mcpu=strongarm1100 hello.bc</span><br style="color:rgb(34,34,34);font-size:14px;font-family:arial,sans-serif">

<div style="color:rgb(34,34,34);font-size:14px;font-family:arial,sans-serif">$ arm-linux-gcc -mcpu=strongarm1100 hello.s -static -O3 -o hello</div><div style="color:rgb(34,34,34);font-size:14px;font-family:arial,sans-serif">

<span style="background-color:transparent"><br></span></div><div style="color:rgb(34,34,34);font-size:14px;font-family:arial,sans-serif"><span style="background-color:transparent"> I got some error messages: </span></div>

<div style="color:rgb(34,34,34);font-size:14px;font-family:arial,sans-serif"><span style="background-color:transparent"><br></span></div><div style><span style="background-color:transparent;font-size:14px"><font color="#222222" face="arial, sans-serif"><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>hello.s:14: Error: bad instruction `push {r11,lr}'</div>

<div>hello.s:18: Error: bad instruction `pop {r11,lr}'</div><div>hello.s:28: Warning: Unrecognized .section attribute: want a,w,x</div><div>hello.s:28: Warning: Unrecognized .section attribute: want a,w,x</div><div>hello.s:28: Error: Rest of line ignored. First ignored character is `,'</div>

<div><br></div><div>P.S.</div><div>The version recommended by SimpleScalar : </div><div>gcc 2.95.2</div><div>binutils 2.10</div><div>glibc 2.1.3</div><div><br></div><div>Thanks a lot !</div><div><br></div><div><div style="font-family:arial">

<font face="trebuchet ms, sans-serif">Best regards, :)</font></div><div style="font-family:arial"><font face="trebuchet ms, sans-serif"><br></font></div><div style="font-family:arial"><font face="trebuchet ms, sans-serif">Yi-Mei Chen</font><span style="font-family:'trebuchet ms',sans-serif"> </span></div>

</div></font></span></div><div><br><div class="gmail_quote">2012/9/26 陳韋任 (Wei-Ren Chen) <span dir="ltr"><<a href="mailto:chenwj@iis.sinica.edu.tw" target="_blank">chenwj@iis.sinica.edu.tw</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Hi Jim,<br>
<div><br>
On Tue, Sep 25, 2012 at 10:52:58AM -0700, Jim Grosbach wrote:<br>
> These errors are from the assembler, not LLVM. Specifically, your binutils is<br>
> too old. Given that it doesn't even recognize the ".syntax" directive, they're<br>
> *very* much too old. You need to upgrade.<br>
> -Jim<br>
<br>
</div>  She said in her previous mail,<br>
<div><br>
    P.S. Because I got error when I use arm-linux-gcc (gcc version 3.X or 4.X),<br>
    I use officially recommended version 2.95,2.<br>
<br>
</div>  I don't know what's her problem while using newer toolchain. :/<br>
<br>
  奕梅,you should use latest toolchain if possible, and post your problem here<br>
to see if it comes from LLVM/Clang or other place. Also, where do you read that<br>
version is recommended?<br>
<div><div><br>
Regards,<br>
chenwj<br>
<br>
--<br>
Wei-Ren Chen (陳韋任)<br>
Computer Systems Lab, Institute of Information Science,<br>
Academia Sinica, Taiwan (R.O.C.)<br>
Tel:886-2-2788-3799 #1667<br>
Homepage: <a href="http://people.cs.nctu.edu.tw/~chenwj" target="_blank">http://people.cs.nctu.edu.tw/~chenwj</a><br>
</div></div></blockquote></div><br><br><div style="color:rgb(34,34,34);font-size:14px"><br></div><br>
</div>
</div></blockquote></div></div></div></blockquote></div><br><br clear="all"><div><br></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">Master's program the second grade</span></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px;background-color:rgb(255,255,255)">
<font face="trebuchet ms,sans-serif">Department of Computer Science<br>National Chiao Tung University<br>1001 University Road, Hsinchu 30010, Taiwan<br></font></div><br>