Java vm

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

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

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

Java vm

Postby PeterS » Mon Jan 22, 2018 4:42 pm

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
Captain Atari
Captain Atari
Posts: 417
Joined: Sun Aug 03, 2014 5:54 pm

Re: Java vm

Postby ThorstenOtto » Tue Jan 23, 2018 8:11 am

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
Captain Atari
Captain Atari
Posts: 417
Joined: Sun Aug 03, 2014 5:54 pm

Re: Java vm

Postby ThorstenOtto » Tue Jan 23, 2018 8:12 am

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: 193
Joined: Fri Nov 09, 2007 1:53 pm
Location: England, GB

Re: Java vm

Postby PeterS » Tue Jan 23, 2018 9:41 am

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: 366
Joined: Mon Oct 13, 2008 12:50 pm
Location: west of London, UK

Re: Java vm

Postby viking272 » Tue Jan 23, 2018 10:41 am

These guys worked on porting Java and OpenJDK for OS/2 ...
http://trac.netlabs.org/java

User avatar
AdamK
Captain Atari
Captain Atari
Posts: 259
Joined: Wed Aug 21, 2013 8:44 am

Re: Java vm

Postby AdamK » Tue Jan 23, 2018 1:32 pm

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: 193
Joined: Fri Nov 09, 2007 1:53 pm
Location: England, GB

Re: Java vm

Postby PeterS » Tue Jan 23, 2018 3:25 pm

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

gjc has been removed from gcc 7.

User avatar
simonsunnyboy
Moderator
Moderator
Posts: 5024
Joined: Wed Oct 23, 2002 4:36 pm
Location: Friedrichshafen, Germany
Contact:

Re: Java vm

Postby simonsunnyboy » Tue Jan 23, 2018 5:21 pm

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: 193
Joined: Fri Nov 09, 2007 1:53 pm
Location: England, GB

Re: Java vm

Postby PeterS » Wed Jan 24, 2018 1:39 pm

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 ;-)


Social Media

     

Return to “C / PASCAL etc.”

Who is online

Users browsing this forum: No registered users and 8 guests