<div dir="ltr">Hi, Ben<div style>gcc version is: 4.7.0</div><div style>clang version is: 3.2</div><div style><br></div><div style>The command options are: </div><div style>1) clang </div><div style>generated object files: clang -O3 -c *.c -o x.o</div>
<div style>link:  clang  *.o -lm -o  mpeg2enc</div><div style><br></div><div style>2) gcc</div><div style><div>generated object files: gcc -O3 -c *.c -o x.o</div><div>link:  gcc  *.o -lm -o  mpeg2enc</div></div><div style>
<br></div><div style><br></div><div style>Yes, maybe it is the config introduced problems, I build it with enable debug options.</div><div style><br></div><div style>Thanks!</div><div style><br></div><div style>Eric</div>
<div style><br></div><div style><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jun 27, 2013 at 7:49 PM, Benjamin Kramer <span dir="ltr"><<a href="mailto:benny.kra@gmail.com" target="_blank">benny.kra@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5"><br>
On 27.06.2013, at 13:40, Eric Lu <<a href="mailto:eirc.lew@gmail.com">eirc.lew@gmail.com</a>> wrote:<br>
<br>
> Hello, all<br>
><br>
> When I compile mpeg2enc of Mediabench, it seems clang and llvm take longer time than gcc. I meausre the time as follow:<br>
><br>
> gcc -O3   8.190s<br>
> clang  -O3  20.253s<br>
><br>
> will this means clang and llvm are slower than gcc in compiling c code.<br>
<br>
</div></div>Possibly. The timings are useless without information about the versions of GCC and clang used and the build configuration (clang is extremely slow when built without optimization).<br>
<br>
- Ben</blockquote></div><br></div>