JOP – Java 优化处理器
JOP – Java Optimized Processor

原始链接: https://www.jopdesign.com/

JOP(Java 优化处理器)是一个小型开源 Java 虚拟机硬件实现,作为维也纳工业大学一项博士论文的一部分开发。JOP 面向嵌入式实时系统设计,直接执行 Java 字节码,并具有可预测的时序,从而弥补传统 JVM 解释器和即时编译器的局限。其紧凑的体积使其可以在低成本 FPGA 上实现;在小批量系统中,灵活性可能比略高的成本更重要。完整的 VHDL 源代码和 Java 工具均按照 GPL v3 提供,并设有用户群组供讨论。

Hacker News 上关于 JOP(Java 优化处理器)的一则讨论帖,探讨了类 Java 字节码的硬件加速。评论者提到 ARM 的 Jazelle,它曾进入消费级芯片,并在旧款树莓派的 cpuinfo 输出中显示为一个 “java” 特性标志。另一些人澄清,ARM Thumb 是一种紧凑的指令编码,并非 Jazelle/ThumbEE,尽管它们都旨在提高代码密度。讨论还提到一些专用指令,例如 ARM 面向 JavaScript 的 FJCVTZS 指令。 一些人问为什么如今对 WebAssembly 或 Java 字节码的硬件支持很少见。回复指出,通用 CPU 具有巨大的成本优势:专用设计往往在性能、工具链和经济性上处于劣势,即便模拟字节码本身运行得很好。历史上的尝试包括 picoJava、Azul Systems 的定制 Java CPU 和低延迟 GC 工作,以及 Rekursiv 之类的面向对象机器。一位评论者描述了在 FPGA 上进行的 WASM 实验和受 Rekursiv 启发的系统,认为硬件强制执行的沙箱机制可能是未来的一个细分方向。
相关文章

原文

This site is designated for a processor design to implement the Java Virtual Machine in hardware. It is part of a PhD thesis at the Vienna University of Technology, Austria. The goal of this development is a simple and small Java processor optimized to execute Java bytecode.

Java, a popular programming language on desktop system, is seldom used in embedded systems. Some features of Java, like thread support in the language, can greatly simplify development of embedded systems, but the common implementations of the JVM (Java Virtual Machine), as interpreter or just-in-time compiler, are not practical.

This site describes an alternative approach: JOP (a Java Optimized Processor) is a hardware implementation of the JVM with predictable execution time for embedded real-time systems.

Due to the small size of the processor, it can be implemented in a low cost FPGA. For low volume systems, the flexibility of an FPGA can be of more importance then the slightly higher cost compared to conventional processors.

JOP is one way to use a configurable Java processor in small embedded real-time systems. It shall help to increase the acceptance of Java for these systems.

Complete VHDL source and tools in Java are available for download. JOP is open-source under the GNU General Public License, version 3. For discussion with other JOP users a yahoo group is available ( Click to join java-processor ).

Martin Schoeberl

联系我们 contact @ memedata.com