Thanx for a prompt reply.<br><br>I will definitely try llvm 2.8 as per your suggestion.<br><br>However Step 1 and Step 2 are working for me in case of a simple hello world program on arm processor . Similarly I am able to run a GTK application on arm. However while running wxGTKwidget app it crashes while allocation of memory. As I mentioned earlier, If I explicitly allocate memory using new operation then everything works fine. Please let me know why do we actually fail without using new, that to a arbitrary pointer which is never used in the program.<br>
<br><div class="gmail_quote">On Fri, Dec 3, 2010 at 6:31 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;">
<div class="im">> I am using llvm-2.7 to run a native(executable) on a arm processor.<br>
</div>ARM was pretty much broken in 2.7. Consider using at least 2.8<br>
<div class="im"><br>
> ../llvm-gcc-4.2-2.7.source/configure --prefix=/home//gcc-disable-shared --enable-languages=c++,c --enable-checking --enable-llvm=/home/ llvm-objects --disable-bootstrap --disable-multilib<br>
</div>You have to configure llvm-gcc as cross-arm compiler.<br>
<div class="im"><br>
> Step 1. llvm-gcc -O3 -emit-llvm minimal.cpp -c -o minimal.bc `wxconfig –cxxflags`<br>
> Step 2. llc minimal.bc –march=arm –o minimal.s (for generating arm assembly code)<br>
</div>This won't work. You're trying to codegen x86 IR for ARM.<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>