Gentoo Archives: gentoo-java

From: Greg Tassone <greg@×××××××.net>
To: gentoo-java@l.g.o
Subject: Re: [gentoo-java] Re: How to predetermine if ebuilds will compile with 1.5?
Date: Mon, 05 Jun 2006 23:55:05
Message-Id: 1149551668.8337.32.camel@tassadar
In Reply to: Re: [gentoo-java] Re: How to predetermine if ebuilds will compile with 1.5? by Caster
1 On Mon, 2006-06-05 at 16:27 +0200, Caster wrote:
2 > ...
3 > Somebody correct me if I'm wrong, but the bytecode compiled will be the
4 > same no matter which JDK you use. Any optimisations are done with
5 > run-time JIT compiling, and depends on the VM running the bytecode
6 > (which can be different from the VM used to compile).
7
8 I think this statement is a little too broad to be considered correct.
9 The compiler can (and often does) make changes to the resulting binaries
10 that may be VM-level specific (e.g., targeted for a 1.5 VM). Consider
11 the "-target" argument for javac, for example, which "Allow[s] javac to
12 use 1.5 specific features in the libraries and virtual
13 machine" (http://java.sun.com/j2se/1.5.0/docs/relnotes/features.html ).
14
15 For more information see the following in the section labeled
16 "Cross-Compilation Options":
17
18 http://java.sun.com/j2se/1.5.0/docs/tooldocs/solaris/javac.html
19
20
21 I also found some interesting information about different bytecode
22 versions here:
23 http://alumnus.caltech.edu/~leif/opensource/bcver/BcVerTask.html
24
25 More information can be found in Sun articles referenced there.
26
27 Finally, it looks like some information appears in the following JSR
28 abstract:
29 http://www.jcp.org/en/jsr/detail?id=202
30
31 ~ Greg

Attachments

File name MIME type
signature.asc application/pgp-signature