B2GPAPI: an Efficient Framework Providing C/C++ Runtime in Web-based OS
Hao Xu, Long Peng, Tao Mao, Jun Ma, Shasha Li, Jie Yu, Qingbo Wu
Abstract— In the Internet era, mobile devices have become more and more popular because of their portability. Web-based operating system (OS) is a mobile operating system based on web technologies and has great potential for growth. However, mobile applications are mainly developed for Android and iOS, and cannot run in a Web-based OS due to the incompatibility between different platforms. Aiming to expand the application ecosystem of the Web-based OS and based on the fact that many mature applications’ low-level code is written in C/C++, we propose B2GPAPI, a framework that provides a runtime for C/C++ applications in the Web-based OS. B2GPAPI makes it possible that existing mature mobile applications can directly run in a Web-based OS. To implement the framework, on the one hand, we employ the