[cc65] Java VM built with cc65

From: Oliver Schmidt <ol.sc1web.de>
Date: 2007-08-08 01:28:12
Hi,

I just posted the usenet article further below. Here some additional
inside information for you:

The NanoVM of course isn't a certifyable Java SE implementation.
Instead it has some interesting properties for a cc65 project:

- All float/math stuff can be configured away.
- All datatypes can be configured to be 15/16 bit instead of 31/32 bit.
- There's no recursion so 'static-locals' can be used project-wide.
- One Java program can optionally be "built" into the VM so file I/O
isn't obligatory.

Performance currently isn't that great so the NanoVM could be a nice
vehicle for testing cc65 optimization improvements...

I was granted write access to the NanoVM CVS repository for doing the
cc65 port and could therefore commit all necessary changes into the
main codeline. The NanoVM owner Till Harbaum has built his own C64
Ethernet card to use with Contiki
(http://www.harbaum.org/till/c64/index.shtml). So my presumption is
that the cc65 support in NanoVM is here to stay (aka maintained).

I could imagine that the NanoVM would be a nice new entry in the
"Projects" section of the cc65 web site - wouldn't it?

BTW: The Contiki URL should be changed from
- http://www.sics.se/~adam/contiki/
to
- http://www.sics.se/contiki/

Best, Oliver

----------

Hi,

I successfully ported the NanoVM (www.harbaum.org/till/nanovm/) to the
cc65 toolchain (www.cc65.org).

It's a very minimalistic Java implementation written in portable C.
The binary built with cc65 is only 16kB.

The NanoVM source is available via anonymous CVS access at
SourceForge.net (sourceforge.net/projects/nanovm/).

To allow you easy access I created a zip file
(www.jantzer-schmidt.de/nanovm-cc65.zip) containing:

1. The tool necessary to convert .class files into an .nvm file to be
loaded by the NanoVM in case you want to create your own Java
programs.

2. An Apple2 .dsk image file containing the NanoVM binary together
with some samples. Type 'EXEC <TXT File> to run one of the sample Java
programs.

3. A C64 .d64 image file containing the NanoVM binary together with
some samples. Type 'RUN:REM <NVM File> to run one of the sample Java
programs.

The source of the sample Java programs can be viewed  via CVS
repository browsing
(nanovm.cvs.sourceforge.net/nanovm/nanovm/java/examples/).

Best, Oliver

----------
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Wed Aug 8 01:28:32 2007

This archive was generated by hypermail 2.1.8 : 2007-08-08 01:28:43 CEST