A fast in-place interpreter for WebAssembly
A fast in-place interpreter for WebAssembly
复制标题
WebAssembly 的快速就地解释器
DOI:
10.1145/3563311
复制
发表时间:
2022
影响因子:
--
通讯作者:
Titzer, Ben L.
中科院分区:
文献类型:
--
作者:
Titzer, Ben L.
WebAssembly (Wasm) is a compact, well-specified bytecode format that offers a portable compilation target with near-native execution speed. The bytecode format was specifically designed to be fast to parse, validate, and compile, positioning itself as a portable alternative to native code. It was pointedly not designed to be interpreted directly. Instead, design considerations at the time focused on competing with native code, utilizing optimizing compilers as the primary execution tier. Yet, in JIT scenarios, compilation time and memory consumption critically impact application startup, leading many Wasm engines to later deploy faster single-pass (baseline) compilers. Though faster, baseline compilers still take time and waste code space for infrequently executed code. A typical interpreter being infeasible, some engines resort to compiling Wasm not to machine code, but to a more compact, but easy to interpret format. This still takes time and wastes memory. Instead, we introduce in this article a fast in-place interpreter for WebAssembly, where no rewrite and no separate format is necessary. Our evaluation shows that in-place interpretation of Wasm code is space-efficient and fast, achieving performance on-par with interpreting a custom-designed internal format. This fills a hole in the execution tier space for Wasm, allowing for even faster startup and lower memory footprint than previous engine configurations.
登录
查看更多内容
DOI:
10.1145/277650.277743
发表时间:
1998
期刊:
Proceedings of the ACM SIGPLAN 1998 conference on Programming language design and implementation
影响因子:
--
作者:
Ian Piumarta;F. Riccardi
通讯作者:
F. Riccardi
影响因子:
19
作者:
A. Gal;Brendan Eich;Mike Shaver;David Anderson;David Mandelin;M. Haghighat;Blake Kaplan;Graydon Hoare;B. Zbarsky;Jason Orendorff;J. Ruderman;Edwin W. Smith;Rick Reitmaier;Michael Bebenita;Mason Chang;M. Franz
通讯作者:
M. Franz
DOI:
--
发表时间:
2005
期刊:
Conference of the Centre for Advanced Studies on Collaborative Research
影响因子:
--
作者:
Mathew Zaleski;Marc Berndl;Angela Demke Brown
通讯作者:
Angela Demke Brown
DOI:
--
发表时间:
2021
期刊:
ACM SIGMOBILE International Conference on Mobile Systems, Applications, and Services
影响因子:
--
作者:
Borui Li;Hongchang Fan;Yi Gao;Wei Dong
通讯作者:
Wei Dong
DOI:
--
发表时间:
2004
期刊:
Workshop on Interpreters, Virtual Machines and Emulators
影响因子:
--
作者:
Jinzhan Peng;Gansha Wu;Guei
通讯作者:
Guei