首页> 外文期刊>Journal of Universal Computer Science >Running Lua Scripts on the CLR through Bytecode Translation
【24h】

Running Lua Scripts on the CLR through Bytecode Translation

机译:通过字节码转换在CLR上运行Lua脚本

获取原文
           

摘要

The .NET Common Language Runtime (CLR) aims to provide interoperability among code written in several different languages, but porting scripting languages to it, so that scripts can run natively, has been hard. This paper presents our approach for running scripts written in Lua, a scripting language, on the .NET CLR. Previous approaches for running scripting languages on the CLR have focused on extending the CLR, statically generating CLR classes from user-defined types in the source languages. They required either language extensions or restrictions on the languages' dynamic features. Our approach, on the other hand, focused on keeping the syntax and semantics of the original language intact, while giving the ability to manipulate CLR objects. We implemented a translator of Lua virtual machine bytecodes to CLR bytecodes. Benchmarks show that the code our translator generates performs better than the code generated by compilers that use the previous approaches.
机译:.NET公共语言运行时(CLR)的目的是在使用几种不同语言编写的代码之间提供互操作性,但是将脚本语言移植到该语言中以使脚本可以在本地运行非常困难。本文介绍了在.NET CLR上运行以脚本语言Lua编写的脚本的方法。在CLR上运行脚本语言的先前方法集中于扩展CLR,从源语言中的用户定义类型静态生成CLR类。他们需要语言扩展或对语言动态功能的限制。另一方面,我们的方法侧重于保持原始语言的语法和语义完整,同时提供操纵CLR对象的能力。我们实现了Lua虚拟机字节码到CLR字节码的转换器。基准测试表明,翻译器生成的代码比使用以前方法的编译器生成的代码性能更好。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号