[LLVMdev] Possible to compile / cross compile LLVM source on Android / ARM ?

Samuel Crow samuraileumas at yahoo.com
Tue Jul 12 13:35:56 PDT 2011


Hi Sidharth,

It is possible to compile to ARM and use Clang with LLVM to produce ARM programs.  The problem that arises is that there is a fair bit of Android that is written in Java.  You'll have to find Android's C++ API routines and use those instead.  Last I heard it was available to run C++ code in Android using JNI bindings.

I hope this helps,

--Sam


----- Original Message -----
> From: Eli Friedman <eli.friedman at gmail.com>
> To: Sidharth Kshatriya <sid.kshatriya at gmail.com>
> Cc: llvmdev at cs.uiuc.edu
> Sent: Tuesday, July 12, 2011 2:44 PM
> Subject: Re: [LLVMdev] Possible to compile / cross compile LLVM source on Android / ARM ?
> 
> http://llvm.org/docs/GettingStarted.html#cross-compile
> 
> -Eli
> 
> On Tue, Jul 12, 2011 at 12:21 PM, Sidharth Kshatriya
> <sid.kshatriya at gmail.com> wrote:
>>  Sorry if this question was too trivial -- even a brief answer would be
>>  fantastic.
>> 
>>  On Tue, Jul 12, 2011 at 8:22 PM, Sidharth Kshatriya
>>  <sid.kshatriya at gmail.com> wrote:
>>> 
>>>  I'm fascinated by the Pure algebraic/functional language[1]. The 
> Pure
>>>  interpreter uses the LLVM JIT compiler as its backend.
>>>  I would like to compile[2] Pure so that it runs on Android / ARM. Pure 
> has
>>>  a dependency on the LLVM JIT. So I need to compile LLVM source for Pure 
> to
>>>  run.
>>>  Is it possible to compile LLVM source[3] for Android (ARM) devices? 
> There
>>>  really seems to be no information about this on the web. Maybe my 
> search
>>>  terms are wrong. Searching for Android LLVM does not bring up many good 
> hits
>>>  either.
>>>    [1]: http://code.google.com/p/pure-lang/
>>>    [2]: http://code.google.com/p/pure-lang/wiki/GettingStarted
>>>    [3]: http://llvm.org/releases/download.html#2.9
>>>  --
>>>  Sidharth Kshatriya
>>>  www.sidk.info
>>> 
>> 
>> 
>> 
>>  --
>>  Sidharth Kshatriya
>>  www.sidk.info
>> 
>> 
>>  _______________________________________________
>>  LLVM Developers mailing list
>>  LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
>>  http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>> 
>> 
> 
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu        http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>




More information about the llvm-dev mailing list