[1163] in java-interest

home help back first fref pref prev next nref lref last post

Re: Problems with the 1.0A3 Virtual Machine Spec (vs. the compiler)

daemon@ATHENA.MIT.EDU (Jeremy Fitzhardinge)
Fri Aug 25 06:39:07 1995

From: "Jeremy Fitzhardinge" <jeremy@suede.sw.oz.au>
Date: Fri, 25 Aug 1995 17:49:20 -0500
In-Reply-To: Nathan Loofbourrow <loofbour@cis.ohio-state.edu>
        "Problems with the 1.0A3 Virtual Machine Spec (vs. the compiler)" (Aug 22,  3:43pm)
To: Nathan Loofbourrow <loofbour@cis.ohio-state.edu>,
        java-interest@java.sun.com

On Aug 22,  3:43pm, Nathan Loofbourrow wrote:
> 2. The Code attribute produced by the compiler has an attribute_length
>    of 0.
>
> 3. The code_length of the Code attribute is wrong (it suggests 700 or
>    so bytes, where the entire class is 450 bytes long).

I've successfully parsed class files, and didn't find either of these two
problems.  I did have problems like this when getting it to work, however.
 I was overlooking a value which I was reading as 2 bytes, but was only 1
(or something like that - I can't remember details right now).

> Are there other folks trying to read and write Java class files? I'd
> be interested in talking with other folks interested in decompiling
> class files, and/or compiling alternate languages to Java bytecode;

The .class files are quite java oriented - I suspect that it might be quite
hard to compile other languages into them, or at least into files which the
runtime will run.  C and C++ would be very hard, but perhaps other
languages like, say, Standard ML might be easier (free pointers would be
the problem). What languages are you thinking about?

	J
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post