<div dir="ltr">The options is<div>cmake -DCMAKE_BUILD_TYPE="Debug"  -DCMAKE_INSTALL_PREFIX=~software/llvmsvn -DCMAKE_EXPORT_COMPILE_COMMANDS=ON /home/xxx/lsoftware/llvm-3.2-svn<br></div><div><br></div><div style>
$make </div><div style>$make install</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Jun 28, 2013 at 12:37 PM, Eric Christopher <span dir="ltr"><<a href="mailto:echristo@gmail.com" target="_blank">echristo@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="im">On Thu, Jun 27, 2013 at 6:04 PM, Eric Lu <<a href="mailto:eirc.lew@gmail.com">eirc.lew@gmail.com</a>> wrote:<br>

> Hi, Ben<br>
> gcc version is: 4.7.0<br>
> clang version is: 3.2<br>
><br>
> The command options are:<br>
> 1) clang<br>
> generated object files: clang -O3 -c *.c -o x.o<br>
> link:  clang  *.o -lm -o  mpeg2enc<br>
><br>
> 2) gcc<br>
> generated object files: gcc -O3 -c *.c -o x.o<br>
> link:  gcc  *.o -lm -o  mpeg2enc<br>
><br>
><br>
> Yes, maybe it is the config introduced problems, I build it with enable<br>
> debug options.<br>
><br>
<br>
</div>More the point did you build it optimized or unoptimized. Can you show<br>
your configure/make commands?<br>
<br>
-eric<br>
<div class="im"><br>
> Thanks!<br>
><br>
> Eric<br>
><br>
><br>
><br>
><br>
> On Thu, Jun 27, 2013 at 7:49 PM, Benjamin Kramer <<a href="mailto:benny.kra@gmail.com">benny.kra@gmail.com</a>><br>
> wrote:<br>
>><br>
>><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<br>
>> > 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>
>> Possibly. The timings are useless without information about the versions<br>
>> of GCC and clang used and the build configuration (clang is extremely slow<br>
>> when built without optimization).<br>
>><br>
>> - Ben<br>
><br>
><br>
><br>
</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" target="_blank">http://llvm.cs.uiuc.edu</a><br>
> <a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
><br>
</blockquote></div><br></div>