项目作者: chrlns

项目描述 :
Bean Java Virtual Machine for Arduino Microcontrollers
高级语言: C
项目地址: git://github.com/chrlns/bean.git
创建时间: 2014-04-23T07:49:59Z
项目社区:https://github.com/chrlns/bean

开源协议:Apache License 2.0

下载


Bean JVM

Bean is my effort to create a Java Virtual Machine.

Some statements:

  • Made for embedded devices
  • No full-featured JVM
  • No extensive security features
  • No HW-threads (e.g. POSIX)

The target platform is my ancient Arduino Duemilanove board with an Atmel ATmega320p (16 MHz, 32 KiB Flash, 2 KiB RAM). Not that much hardware for a Java VM ;-)

Usage

To compile and flash Bean you need avr-gcc and avrdude:

  1. $ make micro
  2. $ make program

Currently you cannot do anything useful with Bean but I will try to make a simple “hello world” pin 13 blink java class runable on the Bean VM.
You can run (or at least try to run) the Hello program on the PC with:

  1. $ ./bean -cp java/target/classes/ Hello

It will probably fail fast.