PDA

View Full Version : what comes next ? jvm . . .



Reinhard
02-09-2012, 06:47 PM
... I think this is not impossible ( have a little bit experience in jvm )

I know this is a long term project, but it is interesst for me and get start it in any case.

What think the forum about this unorthodox way, I explained in the attechment ?

Reinhard

mindrobots
02-09-2012, 06:50 PM
NO! :lol:


Seriously, NO!

Heater.
02-09-2012, 07:00 PM
It's been done already.

Reinhard
02-09-2012, 07:09 PM
@mindrobot; why
@heater: where (I am really interesst)

thanks
Reinhard

mindrobots
02-09-2012, 07:44 PM
Reinhard, I mostly just meant "no" for here and this effort. The focus needs to remain on Propgcc and getting it right and tight for release.

If you want to take it outside, then by all means, go for it!

Propeller Java implementations:

http://propeller.wikispaces.com/Programming+in+Java
(http://propeller.wikispaces.com/Programming+in+Java)
or

http://forums.parallax.com/showthread.php?110317-Propeller-JVM-Project-PASM-Java-VM

Reinhard
02-09-2012, 07:49 PM
mindrobots, thank you for the links

the last is a very long thread, I have not know it and go reading,

Hope I have not drop a brick,

thanks
Reinhard

jazzed
02-09-2012, 08:20 PM
... I think this is not impossible ( have a little bit experience in jvm )

I know this is a long term project, but it is interesst for me and get start it in any case.

What think the forum about this unorthodox way, I explained in the attechment ?

Reinhard

I'm a Java fan. Looks like it would be a good GCC exercise.

I have a PASM JVM for Propeller. It's essentially a Java 1.1 VM without garbage collection (GC - has a bug in it).

mindrobots
02-09-2012, 08:39 PM
Careful, or I'll go out and find a FORTH to run through PropGCC!! :lol: :lol:

jazzed
02-09-2012, 09:12 PM
Careful, or I'll go out and find a FORTH to run through PropGCC!! :lol: :lol:

Rut roh Elroy. :)

I'd be surprised if you can find a forth interpreter written in C.

Reinhard
02-09-2012, 09:21 PM
I have a PASM JVM for Propeller. It's essentially a Java 1.1 VM without garbage collection (GC - has a bug in it).

wow respect, jvm in asm is really cool!

years ago, I tried a jvm in asm for the PIC17C42, at this time this was the high end µC from microchip.
but it wasn't so the hit.
With 32bit target and gcc I see a real chance for me.

btw. I am not so the purist for the java language, but a view under the hook, the virtual machine in scope, is a fascinating matter.

thanks
Reinhard

Kevin Wood
02-09-2012, 09:25 PM
@mindrobots...

One possible candidate... http://www.softsynth.com/pforth

jazzed
02-09-2012, 10:39 PM
@mindrobots...

One possible candidate... http://www.softsynth.com/pforth

Indeed :)


@Reinhard,

PropJVM was written mostly by Peter Verkaik (with contributions from me and hippy). That was the starting point for the PASM JVM. I translated it from Spin to PASM except for the Native interface code which I kept as is.

It would be fairly easy to translate PropJVM from Spin to C - it's just a lot of work. That could be a basis for a Java2 VM though. Then all kinds of things could open up like AWT GUIs, etc....

ersmith
02-10-2012, 12:34 AM
GCC has a Java front end, GCJ. If we got it working, it could compile Java -> LMM PASM. It would probably be pretty straightforward; AFAIK most of the machine dependent stuff is in the back end, which we've already ported.

(There are also Fortran, Ada, and Go front ends for GCC in the main distribution.)

Eric