Is it possible to compile LLVM libraries to android/ARM

后端 未结 5 477
长发绾君心
长发绾君心 2021-02-02 11:50

I\'m fascinated by the Pure algebraic/functional language. The Pure interpreter uses the LLVM JIT compiler as its backend.

I would like to compile Pure so that it runs o

5条回答
  •  萌比男神i
    2021-02-02 12:25

    I think we shuld see on mix of LLVM + Android NDK (C++).

    I'm thinking about SmallTalk-like dymanic object system (*), and LLVM usage is very interesting for lazy dynamic compilation on Android devices.

    First try you shuld build something like tiny Buildroot/OpenWrt Linux system (or build you own using CLFS or my scripts: https://github.com/ponyatov/L/tree/clock ) for ARM device like Raspberry Pi (it's my case for testing). If you got good results on this variant, later you can migrate to Android device itself. I think you'll need some C++/NDK glue code to adopt LLVM/Pure core vs Android runtime and GUI. (**)

    (*) but with my own language syntax, lisp-like functional abilities to mutate all system internals, parser/compiler integrated framework, and maybe some basics of symbolic computer algebra

    (**) is Android Pi alive ?

提交回复
热议问题