Shop OBEX P1 Docs P2 Docs Learn Events
what comes next ? jvm . . . — Parallax Forums

what comes next ? jvm . . .

ReinhardReinhard Posts: 489
edited 2012-02-09 17:34 in Propeller 1
... 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
777 x 1025 - 27K

Comments

  • mindrobotsmindrobots Posts: 6,506
    edited 2012-02-09 11:50
    NO! :lol:


    Seriously, NO!
  • Heater.Heater. Posts: 21,230
    edited 2012-02-09 12:00
    It's been done already.
  • ReinhardReinhard Posts: 489
    edited 2012-02-09 12:09
    @mindrobot; why
    @heater: where (I am really interesst)

    thanks
    Reinhard
  • mindrobotsmindrobots Posts: 6,506
    edited 2012-02-09 12:44
    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

    or

    http://forums.parallax.com/showthread.php?110317-Propeller-JVM-Project-PASM-Java-VM
  • ReinhardReinhard Posts: 489
    edited 2012-02-09 12:49
    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
  • jazzedjazzed Posts: 11,803
    edited 2012-02-09 13:20
    Reinhard wrote: »
    ... 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).
  • mindrobotsmindrobots Posts: 6,506
    edited 2012-02-09 13:39
    Careful, or I'll go out and find a FORTH to run through PropGCC!! :lol::lol:
  • jazzedjazzed Posts: 11,803
    edited 2012-02-09 14:12
    mindrobots wrote: »
    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.
  • ReinhardReinhard Posts: 489
    edited 2012-02-09 14:21
    jazzed wrote: »
    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 WoodKevin Wood Posts: 1,266
    edited 2012-02-09 14:25
    @mindrobots...

    One possible candidate... http://www.softsynth.com/pforth
  • jazzedjazzed Posts: 11,803
    edited 2012-02-09 15:39
    Kevin Wood wrote: »
    @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....
  • ersmithersmith Posts: 6,099
    edited 2012-02-09 17:34
    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
Sign In or Register to comment.