Java is one of the top programming languages known for its platform independency, which is reached by using platform specific Java Virtual Machines (JVM). Each JVM follows strict rules how class files containing the bytecode are parsed and executed. However, there are no such rules for the compilation part and the programmer has no influence on the compiled code.ududThe thesis describes the development of the extended compiler for Java. In addition to the standard commands this compiler also supports usage of blocks that contain Java bytecode. A brief presentation of the Java Virtual Machine and the composition of translated files is followed by description of requirements of the extended compiler as well as the description of the solution. The conclusion is drawn from the analysis of the final compiler and descriptions of some options to expand and upgrade the product.
展开▼
机译:Java是因其平台独立性而闻名的顶级编程语言之一,可通过使用平台特定的Java虚拟机(JVM)来实现。每个JVM都遵循严格的规则,如何解析和执行包含字节码的类文件。但是,编译部分没有这样的规则,并且程序员对编译后的代码没有影响。 ud ud本文描述了Java扩展编译器的开发。除标准命令外,该编译器还支持使用包含Java字节码的块。在简短介绍Java虚拟机和翻译文件的组成之后,将描述扩展编译器的要求以及解决方案。结论来自对最终编译器的分析以及对扩展和升级产品的某些选项的描述。
展开▼