comp.lang.ada
 help / color / mirror / Atom feed
From: "W. Wesley Groleau x4923" <wwgrol@pseserv3.fw.hac.com>
Subject: Re: multi-language to JVM compilers?
Date: 1997/09/23
Date: 1997-09-23T00:00:00+00:00	[thread overview]
Message-ID: <34280184.29EF@pseserv3.fw.hac.com> (raw)
In-Reply-To: dewar.874761008@merv


> Java, and various Java tools would be useless, since the semantic
> level of the JVM generated would be completely wrong. OK, you know
> the JVM specs, but perhaps you do not have a clear idea of the 
> semantic level of a GCC backend, which is a very simple machine model 
> with a limited number of registers.

The JVM and p-code models were very simple in most respects and had 
a limited number of registers.  Where they got complex was in the
frame-handling/subprogram calling instructions where the object code
format/class format was entangled with the instructions that performed
a procedure call/class loading.  (as I recall....)

> By contrast generating silly JVM output from the backend of GCC is by
> contrast trivial, and probably no more than a few weeks work. The fact
> that you think it is a bigger task must mean you have some major
> misconceptions, I can't quite guess what.

The "fact that I think it is a bigger task" is more accurately the 
fact that other people have claimed it is a bigger task.  First,
there were Usenet posts that said starting from the AST was
more feasible (which I may have misinterpreted as meaning easier)
because the byte code was at a higher level that was more similar to
the semantic level of the tree.  Then there was S. Tucker Taft's
paper explaining how Ada features and Java features were so 
straightforwardly mapped onto each other.  

Now you say that a byte-code generating back-end is trivial but 
mapping to the intermediate form is difficult, and that I am 
confused to think otherwise.  I'm not accusing anyone of changing
his/her tune, but I certainly haven't changed mine!

I also do not agree with the apparent suggestion that we can make
object files derived from several different languages compatible
with each other and and with symbolic debuggers, but we can't make
JVM byte-code class files from more than one language "interface
with Java, and the various Java tools."

But my main point is that being able to generate Java classes
from several different languages _would_ be a Good Thing, whether
difficult or not.  That is not to say I fault anyone from doing
whatever he/she/they believes his/her/their customers want/need.

-- 
----------------------------------------------------------------------
    Wes Groleau, Hughes Defense Communications, Fort Wayne, IN USA
Senior Software Engineer - AFATDS                  Tool-smith Wanna-be
                    wwgrol AT pseserv3.fw.hac.com

Don't send advertisements to this domain unless asked!  All disk space
on fw.hac.com hosts belongs to either Hughes Defense Communications or 
the United States government.  Using email to store YOUR advertising 
on them is trespassing!
----------------------------------------------------------------------




  reply	other threads:[~1997-09-23  0:00 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-09-11  0:00 ADA CORE TECHNOLOGIES ANNOUNCES GNAT-TO-JAVA SYSTEM Robert Dewar
1997-09-12  0:00 ` Stephen Leake
1997-09-13  0:00   ` Tarjei T. Jensen
1997-09-14  0:00     ` Robert Dewar
1997-09-14  0:00       ` Tarjei T. Jensen
1997-09-15  0:00         ` Robert Dewar
1997-09-13  0:00   ` Robert Dewar
1997-09-14  0:00     ` Ralph Paul
1997-09-14  0:00       ` Robert Dewar
1997-09-16  0:00         ` Ralph Paul
1997-09-16  0:00         ` Brian Rogoff
1997-09-17  0:00           ` Ralph Paul
1997-09-18  0:00             ` Robert Dewar
1997-09-19  0:00               ` Richard A. O'Keefe
1997-09-19  0:00                 ` Jon S Anthony
1997-09-20  0:00                   ` Jay Han
1997-09-22  0:00                   ` Richard A. O'Keefe
1997-09-20  0:00                 ` Robert Dewar
1997-09-21  0:00                   ` Fergus Henderson
1997-09-22  0:00                     ` Robert Dewar
1997-09-17  0:00           ` Tarjei T. Jensen
1997-09-18  0:00             ` Robert Dewar
1997-09-15  0:00     ` Stephen Leake
1997-09-15  0:00       ` Mark L. Fussell
1997-09-16  0:00       ` Robert Dewar
1997-09-17  0:00         ` Stephen Leake
1997-09-18  0:00           ` Robert Dewar
1997-09-19  0:00             ` translating to Ada, was " Tom Moran
1997-09-19  0:00             ` W. Wesley Groleau x4923
1997-09-20  0:00               ` Robert Dewar
1997-09-23  0:00                 ` W. Wesley Groleau x4923 [this message]
1997-09-16  0:00       ` Tucker Taft
1997-09-17  0:00         ` Robert Dewar
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox