WasmAndroid: A Cross-Platform Runtime for Native Programming Languages on Android
Open Access
- 29 October 2022
- journal article
- research article
- Published by Association for Computing Machinery (ACM) in ACM Transactions on Embedded Computing Systems
- Vol. 22 (1) , 1-19
Abstract
Open source hardware such as RISC-V has been gaining substantial momentum. Recently, they have begun to embrace Google’s Android operating system to leverage its software ecosystem. Despite the encouraging progress, a challenging issue arises: a majority of Android applications are written in native languages and need to be recompiled to target new hardware platforms. Unfortunately, this recompilation process is not scalable because of the explosion of new hardware platforms. To address this issue, we present WasmAndroid, a high-performance cross-platform runtime for native Android applications. With WasmAndroid, developers can compile their source code to WebAssembly, an efficient and portable bytecode format that can be executed everywhere without additional reconfiguration. Developers can also transpile existing application binaries to WebAssembly when source code is not available. WebAssembly’s language model is very different from other common languages. This mismatch leads to many unique implementation challenges. In this article, we provide workable solutions and conduct a thorough system evaluation. We show that WasmAndroid provides acceptable performance to execute native applications in a cross-platform manner.Keywords
This publication has 16 references indexed in Scilit:
- MineSweeper2018
- JN-SAF2018
- OpenCV.js2018
- Fast Physics on the Web Using C++, JavaScript, and EmscriptenComputing in Science & Engineering, 2018
- Data Flow Analysis2017
- A graph-based iterative compiler pass selection and phase ordering approachACM SIGPLAN Notices, 2016
- Obfuscator-LLVM -- Software Protection for the Masses2015
- A Retargetable Static Binary Translator for the ARM ArchitectureACM Transactions on Architecture and Code Optimization, 2014
- SPEC CPU2006 benchmark descriptionsACM SIGARCH Computer Architecture News, 2006
- The Definitive Guide to SQLite2006