{"title":"嵌入式系统WebAssembly的实时编译支持","authors":"Konrad Moron, Stefan Wallentowitz","doi":"10.1109/MECO58584.2023.10155088","DOIUrl":null,"url":null,"abstract":"WebAssembly gains increasing interest outside the browser, such as in servers or desktops. It also becomes a viable candidate as a managed virtual machine for embedded systems, supported by multiple runtimes. However, the performance of interpreters is limited. Outside embedded systems, just-in-time compilation is used to significantly improve the performance of bytecode execution. Existing WebAssembly runtimes with just-in-time compilation support are either unsuitable for the use on low-resource hardware such as micro-controllers, or they employ a basic compilation strategy that doesn't utilize optimization opportunities and increases the compilation overhead. In this work, we present a micro-controller compatible WebAssembly runtime that supports the general framework for enabling advanced, feedback guided just-in-time compilation and evaluate the memory overhead it incurs on the runtime. Our measurements show that such systems are viable on a variety of low-resource hardware and previous research suggests that a production-ready system is likely to considerably improve the speed of WebAssembly on embedded system-on-chip.","PeriodicalId":187825,"journal":{"name":"2023 12th Mediterranean Conference on Embedded Computing (MECO)","volume":"37 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2023-06-06","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"1","resultStr":"{\"title\":\"Support for Just-in-Time Compilation of WebAssembly for Embedded Systems\",\"authors\":\"Konrad Moron, Stefan Wallentowitz\",\"doi\":\"10.1109/MECO58584.2023.10155088\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"WebAssembly gains increasing interest outside the browser, such as in servers or desktops. It also becomes a viable candidate as a managed virtual machine for embedded systems, supported by multiple runtimes. However, the performance of interpreters is limited. Outside embedded systems, just-in-time compilation is used to significantly improve the performance of bytecode execution. Existing WebAssembly runtimes with just-in-time compilation support are either unsuitable for the use on low-resource hardware such as micro-controllers, or they employ a basic compilation strategy that doesn't utilize optimization opportunities and increases the compilation overhead. In this work, we present a micro-controller compatible WebAssembly runtime that supports the general framework for enabling advanced, feedback guided just-in-time compilation and evaluate the memory overhead it incurs on the runtime. Our measurements show that such systems are viable on a variety of low-resource hardware and previous research suggests that a production-ready system is likely to considerably improve the speed of WebAssembly on embedded system-on-chip.\",\"PeriodicalId\":187825,\"journal\":{\"name\":\"2023 12th Mediterranean Conference on Embedded Computing (MECO)\",\"volume\":\"37 1\",\"pages\":\"0\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2023-06-06\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"1\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"2023 12th Mediterranean Conference on Embedded Computing (MECO)\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.1109/MECO58584.2023.10155088\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"2023 12th Mediterranean Conference on Embedded Computing (MECO)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/MECO58584.2023.10155088","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
Support for Just-in-Time Compilation of WebAssembly for Embedded Systems
WebAssembly gains increasing interest outside the browser, such as in servers or desktops. It also becomes a viable candidate as a managed virtual machine for embedded systems, supported by multiple runtimes. However, the performance of interpreters is limited. Outside embedded systems, just-in-time compilation is used to significantly improve the performance of bytecode execution. Existing WebAssembly runtimes with just-in-time compilation support are either unsuitable for the use on low-resource hardware such as micro-controllers, or they employ a basic compilation strategy that doesn't utilize optimization opportunities and increases the compilation overhead. In this work, we present a micro-controller compatible WebAssembly runtime that supports the general framework for enabling advanced, feedback guided just-in-time compilation and evaluate the memory overhead it incurs on the runtime. Our measurements show that such systems are viable on a variety of low-resource hardware and previous research suggests that a production-ready system is likely to considerably improve the speed of WebAssembly on embedded system-on-chip.