<div>Hi, </div>
<div> </div>
<div>Any help would b appreicated. This is one of my critical assignment.</div>
<div> </div>
<div>Thanks</div>
<div>Sanjeev<br><br></div>
<div class="gmail_quote">On Thu, Jun 17, 2010 at 7:03 PM, Sanjeev chugh <span dir="ltr"><<a href="mailto:sanjuchugh@gmail.com">sanjuchugh@gmail.com</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<p>Hello,</p>
<p>Thanks for the reply. We have an product whose one part has lot of algorithms doing some graphics work. Our intention was to figure out if there can be any performance gain if we use llvm instead of native ARM. This is for ARM target. Earlier, I have built this component using llvm and tested  it on x86. Performance was 4x as compared to native gcc. Then I built llvm for ARM and tested this component on ARM with llvm compiler and performance of llvm+arm against native ARM was almost equal or less :( However, I have run a simple sorting algorithms who run for 100K times and sort 10K elements on llvm+arm and this time it's performance was 3x better than native ARM. Can you guys please suggest what could be there in this graphics component which is not allowing the performance to improve for ARM+llvm.</p>

<p>cross-compiler has been built with these flags</p>
<p>Using built-in specs.<br>Target: armv7fl-montavista-linux-gnueabi<br>Configured with: ./configure --host=i686-pc-linux-gnu --build=i686-pc-linux-gnu --target=armv7fl-montavista-linux-gnueabi --enable-cross --with-sysroot=/home/arm_v7_vfp_le/target/ --with-build-sysroot=/home/arm_v7_vfp_le/target/ --enable-shared --enable-languages=c,c++ --with-as=/home/arm_v7_vfp_le/bin/arm_v7_vfp_le-as --with-ld=/home/arm_v7_vfp_le/bin/arm_v7_vfp_le-ld --enable-checking=release --disable-multilib --enable-llvm=/home/Desktop/Sanjeev/LLVM/llvm-2.7 --enable-clocale=gnu --with-cpu=cortex-a8 --with-interwork --with-arch=armv7-a --with-mode=arm --with-tune=cortex-a8 --with-fpu=vfp3 --disable-bootstrap --disable-libmudflap --disable-libssp<br>
Thread model: posix<br>gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build)</p>
<p> </p>
<p> </p>
<p>These are the steps how I'm building library on ARM+llvm. generated .a is linked with other targets built with native arm compiler.</p>
<p>g++-cross -flto -O2 -Wall -function-sections -fdata-sections ; for all .cpps<br>llvm-ld -link-as-library *.bc target.bc // Consolidate all .bcs into one<br>llc target.bc -o target.s<br>cross-as target.s -o target.o<br>
ar q target.a target.o<br><br><br></p>
<div>
<div></div>
<div class="h5">
<div class="gmail_quote">On Mon, Jun 7, 2010 at 10:18 PM, Anton Korobeynikov <span dir="ltr"><<a href="mailto:anton@korobeynikov.info" target="_blank">anton@korobeynikov.info</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">Hello<br>
<div><br>> /tmp/cczBL31y.s:409: rdhi, rdlo and rm must all be different<br></div>This is binutils bug fixed ~2 years ago:<br><a href="http://sourceware.org/ml/binutils/2007-11/msg00046.html" target="_blank">http://sourceware.org/ml/binutils/2007-11/msg00046.html</a><br>
<br>Make sure you're using the latest binutils for ARM (from binutils CVS)<br><font color="#888888"><br>--<br>With best regards, Anton Korobeynikov<br>Faculty of Mathematics and Mechanics, Saint Petersburg State University<br>
</font></blockquote></div><br></div></div></blockquote></div><br>