摘要
动态编译是Perl的主要特征之一,Perl6是Perl的下一代版本,而Parrot作为Perl6解释器的实现,提供了更强大的动态编译技术。在深入分析Parrot动态编译技术的基础上,总结其到Java移植的关键点,重点讨论了PMC的移植方法,以及用于动态编译的编译器的获得和保存、注册、运行等的移植方法。阐述了利用Java的Reflection技术访问动态装载的类的方法,从而实现动态链接编译器的移植。
Runtime compilation technique is one of Perl main features. Perl6 is the next vision of Perl, and Parrot is an implementation of Perl6 interpreter and provides stronger runtime compilation technique. Based on anatomizing Parrot runtime compilation technique, the keys of porting it to Java are analyzed and the porting plan of PMC and the manipulations on the compilers for runtime compilation are emphasized on, such as getting and saving, registering, running and so on. The way to implement and access dynamic linked compiler with the help of Java Reflection technique in order to realize the porting of the compilers for runtime compilation is expained.
出处
《计算机应用与软件》
CSCD
北大核心
2007年第8期70-71,74,共3页
Computer Applications and Software