Linux/MIPS 和 Linux/PowerPC 上的 Scala

Scala on Linux/MIPS and Linux/PowerPC

现在嵌入式系统在 MIPS 或 PowerPC 处理器上 运行 Linux 已经很普遍了。

Scala 程序 运行 在此类系统上的表现如何?

显然 Scala 需要 JVM - MIPS 和 PowerPC 上是否有好的 JVM? 特别是有支持 JIT 或 AOT 编译的 JVM 吗?

除了 JVM、标准 JRE 库和 Scala 库之外,还有其他要求吗?

提前致谢,

尼克。

JamVM has full support for the Java Virtual Machine Specification Java SE 8 Edition on both Linux/MIPS and Linux/PowerPC. It is purely a JVM, in order for it to be actually useful, you need to pair it with a JRE. JamVM supports both GNU Classpath as well as the OpenJDK 6, 7, and 8 class libraries. It can also be used as a JVM inside IcedTea。它有一个带有堆栈缓存的内联线程解释器,可以提供与简单的 JIT 编译器相当的性能,但它无法与复杂的高性能 JIT 编译器竞争,例如 HotSpot C2、Oracle JRockit 或 IBM J9。

中国 MIPS CPU 供应商 open-sourced an OpenJDK 8 port to MIPS 两周前。

The IBM J9 JDK自然有对Linux/PowerPC的支持。或者实际上更适合 Linux/POWER.

一家名为MicroDoc sells a MIPS port of Oracle Java SE Embedded 8 and a PowerPC port的公司。不过,我不相信 Scala 可以在 Java SE Embedded 上运行。