[3226] in java-interest
Re: JavaBASIC, JavaPascal
daemon@ATHENA.MIT.EDU (Thomas Ball)
Fri Nov 3 16:48:24 1995
Date: Fri, 3 Nov 1995 10:45:40 -0800
From: Thomas.Ball@Eng.Sun.COM (Thomas Ball)
To: jim@carroll.com
Cc: java-interest@java.Eng.Sun.COM
By all means, go for it! You'll probably need to add a verification pass,
however, because otherwise the VM's verifier will fail to load unsafe
classes which your compiler creates. A good compiler should always create
classes which are at least loadable. This means that certain normal C
conventions, like pointers to unbounded arrays or int->pointer casting,
won't be compilable (at least not to a verifiable class).
As the debugger guy here, I ask that you also please include optional line
number and local variable support. I'm not sure if that's in the VM spec
yet, but javap has a new "-l" option to dump these tables, and their
structure is defined in interpreter.h.
Tom Ball
Java Products Group
> > From: David Gardiner <david.gardiner@unisa.edu.au>
> > Date: Fri, 3 Nov 1995 09:32:37 +1030
> > Subject: JavaBASIC, JavaPascal
> >
> > It occurred to me the other day. Why can't we develop compilers
> > that use the Java object format, but use different source languages?
>
> <deleted>
>
> > Would there be any huge hurdles in providing this capability.
> > My initial thoughts would be all you would need is a language spec
> > that was object-oriented (could behave in a similar way to Java/C++),
> > and a compiler that turned this source into the compiled java classes.
>
> I had the same thought when I first saw the Virtual machine spec. As a
> matter of fact, I dawned on me, that with the machine spec, you go an
> design a C++ compiler, that genreated Java code. Suddenly, those of use
> who want pointers, structures, unions, etc... would be able to have them.
>
> Does this sound plausible?
>
> --
> Jim C., President |
> 201-488-1332 voice | C a r r o l l - N e t
> 201-487-5717 dialup | Bergen County, NJ's Premier Internet Access Provider
> http://www.carroll.com |
> -
> This message was sent to the java-interest mailing list
> Info: send 'help' to java-interest-request@java.sun.com
>
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com