Java vm

C and PASCAL (or any other high-level languages) in here please

Moderators: simonsunnyboy, Mug UK, Zorro 2, Moderator Team

Post Reply
PeterS
Captain Atari
Captain Atari
Posts: 324
Joined: Fri Nov 09, 2007 1:53 pm
Location: England, GB

Java vm

Post by PeterS »

I quick search on here reveals a few short discussions from the early 2000s about Java and jvm. I did try to get Kaffe woking back in about 1999 without much luck.

While I don't think the situation has improved there have been jvm developments in the intervening years, like:

https://sourceforge.net/projects/jamvm/

Java isn't perfect but GEM coding in Java would be rather nice.
ThorstenOtto
Atari God
Atari God
Posts: 1210
Joined: Sun Aug 03, 2014 5:54 pm

Re: Java vm

Post by ThorstenOtto »

PeterS wrote:While I don't think the situation has improved there have been jvm developments in the intervening years, like:

https://sourceforge.net/projects/jamvm/
WIthout looking to much into it, i think that porting that to 68k should be possible. But for
GEM coding in Java would be rather nice.
you would also need to port the class libraries, and that's a total different thing. Also, if i understood correctly, most of the command line tools are taken from OpenJDK, so you need to port them, too.
ThorstenOtto
Atari God
Atari God
Posts: 1210
Joined: Sun Aug 03, 2014 5:54 pm

Re: Java vm

Post by ThorstenOtto »

PeterS wrote:While I don't think the situation has improved there have been jvm developments in the intervening years, like:

https://sourceforge.net/projects/jamvm/
WIthout looking to much into it, i think that porting that to 68k should be possible. But for
GEM coding in Java would be rather nice.
you would also need to port the class libraries, and that's a total different thing. Also, if i understood correctly, most of the command line tools are taken from OpenJDK, so you need to port them, too.
PeterS
Captain Atari
Captain Atari
Posts: 324
Joined: Fri Nov 09, 2007 1:53 pm
Location: England, GB

Re: Java vm

Post by PeterS »

Yes, Java compiler would be needed and quite a few other things just to build a simple program.
User avatar
viking272
Captain Atari
Captain Atari
Posts: 439
Joined: Mon Oct 13, 2008 12:50 pm
Location: west of London, UK

Re: Java vm

Post by viking272 »

These guys worked on porting Java and OpenJDK for OS/2 ...
http://trac.netlabs.org/java
User avatar
AdamK
Captain Atari
Captain Atari
Posts: 330
Joined: Wed Aug 21, 2013 8:44 am

Re: Java vm

Post by AdamK »

PeterS wrote:Yes, Java compiler would be needed and quite a few other things just to build a simple program.
There is Java compiler for FreeMiNT (Gcc).
Atari: FireBee, Falcon030 + CT60e + SuperVidel + SvEthlana, TT, 520ST + 4MB ST RAM + 8MB TT RAM + CosmosEx + SC1435, 1040STFM + UltraSatan + SM124, 1040STE 4MB ST RAM + 8MB TT RAM + CosmosEx + NetUSBee + SM144 + SC1224, 65XE + U1MB + VBXE + SIDE2, Jaguar, Lynx II, 2 x Portfolio (HPC-006)

Adam Klobukowski [adamklobukowski@gmail.com]
PeterS
Captain Atari
Captain Atari
Posts: 324
Joined: Fri Nov 09, 2007 1:53 pm
Location: England, GB

Re: Java vm

Post by PeterS »

https://gcc.gnu.org/wiki/GCJ

gjc has been removed from gcc 7.
simonsunnyboy
Moderator
Moderator
Posts: 5239
Joined: Wed Oct 23, 2002 4:36 pm
Location: Friedrichshafen, Germany
Contact:

Re: Java vm

Post by simonsunnyboy »

From a plain performance point of view, a distinct java->M68K compiler would be more suited.
Java crawled on my Pentium 166Mhz with 16MB RAM in 1998 so I think it will also crawl on a CT60 or Firebee, not even thinking of a stock Falcon or (gosh) STE.
Simon Sunnyboy/Paradize - http://paradize.atari.org/

Stay cool, stay Atari!

1x2600jr, 1x1040STFm, 1x1040STE 4MB+TOS2.06+SatanDisk, 1xF030 14MB+FPU+NetUS-Bee
PeterS
Captain Atari
Captain Atari
Posts: 324
Joined: Fri Nov 09, 2007 1:53 pm
Location: England, GB

Re: Java vm

Post by PeterS »

I believe Java -> native is not well supported but I've not really looked into it. That may be why gcj is obsolete.

The jvm back in 1998 was terribly slow and even the compilers used to build it have moved on a lot in the past 20 years. With only 16MB in a PC I am surprised it could do anything ;-)
Post Reply

Return to “C / PASCAL etc.”