arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1906.03304cs.SE
收藏

MoMIT:在25美分硬币上移植JavaScript解释器

MoMIT: Porting a JavaScript Interpreter on a Quarter Coin

Rodrigo Morales, Ruben Saborido, Yann-Gaël Guéhéneuc

摘要:

物联网(IoT)是一个物理的、异构的、连接的设备网络,通过专用网络和互联网提供服务。它将一系列新设备连接到Internet,以便它们可以与世界各地的Web服务器和其他设备进行通信。今天用于通信网页和Web应用程序的标准平台是JavaScript(JS),扩展相同的标准平台以连接物联网设备似乎更合适。然而,将JS应用程序移植到各种物联网设备,特别是片上系统(SoC)设备(\eg ~Arduino Uno,Particle \photon)上,是具有挑战性的,因为这些设备在内存和存储容量方面受到限制。运行JS应用程序增加了在设备上部署代码解释器的资源开销。此外,在某些缺少某些硬件/软件功能的设备上运行JS应用程序可能无法“按原样”运行。为了解决这个问题,我们提出了\momit ~一种多目标优化方法,以使JS应用程序在物联网受限的设备上运行。为了验证\momit,我们编译一个JS解释器来执行一个由23个应用程序组成的测试床,并测量它们在应用小型化过程之前和之后的性能。我们使用三种不同的搜索算法实现了\momit ~,发现它可以减少代码大小,内存使用量和CPU时间的中值分别为31%,56%和36%。最后,与使用默认JS解释器功能相比,MoMIT将小型化JS解释器移植到多达2个SoC附加设备。

英文摘要:

The Internet of Things (IoT) is a network of physical, heterogeneous, connected devices providing services through private networks and the Internet. It connects a range of new devices to the Internet so they can communicate with Web servers and other devices around the world. Today's standard platform for communicating Web pages and Web apps is JavaScript (JS) and extending the same standard platform to connect IoT devices seems more than appropriate. However, porting JS applications to the large variety of IoT devices, specifically on System-on-a-Chip (SoCs) devices (\eg~Arduino Uno, Particle \photon), is challenging because these devices are constrained in terms of memory and storage capacity. Running JS applications adds an overhead of resources to deploy a code interpreter on the devices. Also, running JS applications may not be possible ``as is'' on some device missing some hardware/software capabilities. To address this problem, we propose \momit~a multiobjective optimization approach to miniaturize JS applications to run on IoT constrained devices. To validate \momit, we miniaturize a JS interpreter to execute a testbed comprised of 23 applications and measure their performances before and after applying the miniaturization process. We implement \momit~using three different search algorithms and found that it can reduce code size, memory usage, and CPU time by median values of 31\%, 56\%, and 36\% respectively. Finally, MoMIT ported the miniaturized JS interpreters up to to 2 SoCs additional devices, in comparison of using default JS interpreter features.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑