Hello,<br><br>Since, I cudn't get performance gain using llvm compiler, I've tried to use gold linker instead of going through these following steps.<br><br>a) 'llvm-gcc -c -flo -O2' to generate the .bc files. <br>
b) 'llvm-ld' to combine them into a single .bc. No, not a .so nor a .a. <br>c) 'llc' to turn your combined .bc into a .s <br>d) 'as' to turn your .s into a .o <br><br>I followed instructions from web page. <a href="http://llvm.org/docs/GoldPlugin.html">http://llvm.org/docs/GoldPlugin.html</a><br>
<br>I configured linker with these paramters.<br>../src/configure --host=i686-pc-linux-gpu --build=i686-pc-linux-gpu --target=armv7fl-montavista-linux-gnueabi --enable-gold --enable-plugins --enable-lto --with-cpu=cortex-a8 --with-interwork --with-arch=armv7-a --with-mode=arm --with-tune=cortex-a8 --with-fpu=vfp3<br>
<br>Did a make then.<br><br>But the code generated with ld-new is intel binary and not a ARM binary :(<br><br>I did<br>arm_v7_vfp-le a.c<br>ld-new libs a.o -o binary<br>file ./binary<br>./binary: ELF 32-bit LSB executable, intel 80386 version 1(SYSV) dynamically linked (uses shared libs), for GNU/Linux 2.6.9 not stripped<br>
<br>Any idea Why is it so ? Hoping for a quick reply<br><br>-Sanjeev<br><br><div class="gmail_quote">On Mon, Jun 28, 2010 at 2:23 PM, Anton Korobeynikov <span dir="ltr"><<a href="mailto:anton@korobeynikov.info">anton@korobeynikov.info</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">> exactly<br>
Well, in general, there is no connection between the performance on<br>
x86 and on ARM.<br>
You can try to profile your code and find what causes the speedup on<br>
x86 and figure out the slowdowns on ARM.<br>
<font color="#888888"><br>
--<br>
</font><div><div></div><div class="h5">With best regards, Anton Korobeynikov<br>
Faculty of Mathematics and Mechanics, Saint Petersburg State University<br>
</div></div></blockquote></div><br>