[llvm-dev] LLVM Runtime Code Generation on Android

Bruce Hoult via llvm-dev llvm-dev at lists.llvm.org
Mon Sep 7 05:03:57 PDT 2015


Yup, there's even a library for it included in AOSP:

https://android.googlesource.com/platform/external/vixl/


On Sun, Sep 6, 2015 at 4:02 PM, Ali Demiröz <llvm-dev at lists.llvm.org> wrote:

> Hi,
>
> Is there anybody out there that is experienced with run-time code
> generation on an android device?
> Is it even possible to achieve this?
>
> 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. )
>
> 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?
>
> Thanks,
> Ali
>
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150907/a452d0ad/attachment.html>


More information about the llvm-dev mailing list