<div dir="ltr">Yup, there's even a library for it included in AOSP:<div><br></div><div><a href="https://android.googlesource.com/platform/external/vixl/">https://android.googlesource.com/platform/external/vixl/</a><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Sep 6, 2015 at 4:02 PM, Ali Demiröz <span dir="ltr"><<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><span style="font-size:12.8000001907349px">Hi,</span><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">Is there anybody out there that is experienced with run-time code generation on an android device?</div><div style="font-size:12.8000001907349px">Is it even possible to achieve this?</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">I compiled both llvm and clang for x64 android tablet and everything seemed fine until i tried to call exposed generated function through my native code: it gave an error that indicating I dont have rights to execute code in this memory block.(I will add the exact error when i access my development machine. ) </div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">My tablet is not rooted so I can not be sure that is caused by memory protection. But I would expect llvm/clang to handle memory rights that generated code resides in. right?</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">Thanks,</div><div style="font-size:12.8000001907349px">Ali</div></div>
<br>_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
<br></blockquote></div><br></div>