0

I'm working on a school project where I am required to use the GNU Compiler for Java. I've always worked using the official Sun JDK and now I'm concerned about differences that might complicate my work.

I'm specially interested in which version of Java is the one supported by the latest GCJ compiler

Could someone shed some light in the differences between one or the other?

PS: I searched on google but failed in finding a recent answer

4

5 に答える 5

1

gcj は GNU Classpath 上のコンパイラであるため、公式の JDK と GNU Classpath の違いが必要です。SUN JDK 1.4の場合はこちらを参照してください。SUN JDK 1.5 の場合はこちらを参照してください。

于 2009-11-06T21:39:39.707 に答える
1

この回答が最高投票数の回答になる場合は、教授に、なぜそのような珍しいプラットフォームを使用させているのかを再考するよう依頼する必要があることを意味します. 現実の世界では、人々は主に Sun JDK を使用しています。近い将来、これが大きく変わるとは思えません。ほとんどの場合、高品質の製品です。

これは本当にあなたの学習に役立ちますか?

于 2009-11-07T03:23:00.910 に答える
0

それはホームページからです:

http://gcc.gnu.org/java/

Compiled applications are linked with the GCJ runtime, libgcj, which provides the core 
class libraries, a garbage collector, and a bytecode interpreter. libgcj can dynamically 
load and interpret class files, resulting in mixed compiled/interpreted applications. It 
has been merged with GNU Classpath and supports most of the 1.4 libraries plus some 1.5 
additions. 
于 2009-11-06T21:39:55.027 に答える
0

前回見たとき、日付の解析に微妙な違いがありました。

gnu JVM は Java TCK に合格していないため、基本的に完全なテストが必要な新しいプラットフォームとして扱う必要があります。

于 2009-11-06T23:28:05.470 に答える