androidc++linuxdalvik

Is there any Java-based C/C++ compiler?


I understand that if it even exists it's N times slower than compiler written in native code and compiled for concrete arch. But anyway.

The main purpose is to compile few small c/c++ source files on android device (arm/x86, linux-based os, dalvik jvm). The sources can be created on users android device and compiler should work on users device too.

Any thoughts?


Solution

  • Well, after few weeks of research i can say there is no such thing in nature. For android you should use native compiler but you'l have a lot of compatibility issues so get ready to apply patches, catch exceptions and dive into hundreds of megabytes of native code..