计算机科学 > 程序设计语言
[提交于 2015年11月11日]
标题:Implementing a Small Parsing Virtual Machine on Embedded Systems
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:PEGs are a formal grammar foundation for describing syntax, and are not hard to generate parsers with a plain recursive decent parsing. However, the large amount of C-stack consumption in the recursive parsing is not acceptable especially in resource-restricted embedded systems. Alternatively, we have attempted the machine virtualization approach to PEG-based parsing. MiniNez, our implemented virtual machine, is presented in this paper with several downsizing techniques, including instruction specialization, inline expansion and static flow analysis. As a result, the MiniNez machine achieves both a very small footprint and competitive performance to generated C parsers. We have demonstrated the experimental results by comparing on two major embedded platforms: Cortex-A7 and Intel Atom processor.
提交历史
来自:Kimio Kuramitsu[v1] 2015年11月11日 星期三 07:44:04 UTC