Bytecode is an intermediate representation of executable code - between source and executable. It is used by an interpreter, rather than having the interpreter run from source. This was a technique used all the way back to dialects of BASIC. PRINT, e.g., may have been represented by a hex 'FD' or whatever.

Java bytecode is interpreted by the Java Runtime Environment into executable code, on the fly, for whatever machine you are on. Bytecode is the machine-independent part of Java. there are also JIT compilers that create executable objects out of bytecode, so that they run faster the next time.

I don't think this has anything directly to do with garbage collection.

Anything can generate bytecode - if you knew the specification, you could do it in a hex editor by hand. Anyone up for assembly language?

You can probably find better explanations at www.javasoft.com

HTH

Vern

At 10:56 AM 11/3/2003 -0500, you wrote:


-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx]On Behalf Of Hans Boldt
Sent: Monday, November 03, 2003 10:32 AM
To: midrange-l@xxxxxxxxxxxx
Subject: Re: ILE vs CLI. was V5R3

>Other languages can and do participate in the Java runtime
>environment. One such is Jython, a version of Python that generates
>Java bytecodes. This and others are listed at
><http://grunge.cs.tu-berlin.de/~tolk/vmlanguages.html>.


I would guess that Java bytecodes is a way for languages to participate in the JAVA runtime garbage collection. Can Jython instantiate a Java class? Could RPG generate Java bytecodes?

Basically, the question is, what does Java bytecodes provide in terms of the
inter language use of classes?  That is, can the Java bytecodes generated by
the compiling of code in one language be referenced at the source code level
by a programmer in another language.

thanks,

Steve


_______________________________________________ This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/midrange-l or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/midrange-l.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.