nanovm

所属分类:单片机开发
开发工具:Java
文件大小:406KB
下载次数:68
上传日期:2008-01-02 22:59:51
上 传 者6108ty
说明:  AVR 单片机实现面向对象编程-JAVA语言编写应用程序在NANOVM上运行
(AVR Microcontroller-JAVA object-oriented programming language to write applications to run in NANOVM)

文件列表:
nanovm\COPYING (18008, 2007-05-05)
nanovm\vm\src\array.c (3188, 2007-05-05)
nanovm\vm\src\array.h (1662, 2007-05-05)
nanovm\vm\src\debug.c (1871, 2007-05-05)
nanovm\vm\src\debug.h (1273, 2007-05-05)
nanovm\vm\src\delay.h (1537, 2007-05-05)
nanovm\vm\src\eeprom.h (1432, 2007-05-05)
nanovm\vm\src\error.c (2229, 2007-05-05)
nanovm\vm\src\error.h (2228, 2007-05-05)
nanovm\vm\src\heap.c (9083, 2007-05-05)
nanovm\vm\src\heap.h (1530, 2007-05-05)
nanovm\vm\src\loader.c (3766, 2007-05-05)
nanovm\vm\src\loader.h (1218, 2007-05-05)
nanovm\vm\src\Makefile (1230, 2007-05-05)
nanovm\vm\src\NanoVM.c (2487, 2007-05-05)
nanovm\vm\src\native.h (3481, 2007-05-05)
nanovm\vm\src\native_asuro.c (6592, 2007-05-05)
nanovm\vm\src\native_asuro.h (1012, 2007-05-05)
nanovm\vm\src\native_avr.c (6105, 2007-05-05)
nanovm\vm\src\native_avr.h (1167, 2007-05-05)
nanovm\vm\src\native_impl.c (3333, 2007-05-05)
nanovm\vm\src\native_impl.h (1001, 2007-05-05)
nanovm\vm\src\native_lcd.c (4935, 2007-05-05)
nanovm\vm\src\native_lcd.h (999, 2007-05-05)
nanovm\vm\src\native_stdio.c (7020, 2007-05-05)
nanovm\vm\src\native_stdio.h (1147, 2007-05-05)
nanovm\vm\src\nvmcomm1.c (1397, 2007-05-05)
nanovm\vm\src\nvmcomm1.h (1597, 2007-05-05)
nanovm\vm\src\nvmcomm2.c (10478, 2007-05-05)
nanovm\vm\src\nvmcomm2.h (6598, 2007-05-05)
nanovm\vm\src\nvmfile.c (5750, 2007-05-05)
nanovm\vm\src\nvmfile.h (2548, 2007-05-05)
nanovm\vm\src\nvmtypes.h (2613, 2007-05-05)
nanovm\vm\src\opcodes.h (5360, 2007-05-05)
nanovm\vm\src\stack.c (4764, 2007-05-05)
nanovm\vm\src\stack.h (1744, 2007-05-05)
nanovm\vm\src\types.h (1889, 2007-05-05)
nanovm\vm\src\uart.c (4175, 2007-05-05)
nanovm\vm\src\uart.h (1069, 2007-05-05)
nanovm\vm\src\utils.h (1134, 2007-05-05)
... ...

NanoVMTool.jar - Classfile converter and Uploader for NanoVM http://www.harbaum.org/till/nanovm ---------------------------------------------------------------------------- The NanoVMTool is a helper tool for the NanoVM. It is required to convert class files into the internal NanoVM format and to upload them to the target device. This has several advantages: - The total file size is reduced - All depending class files are combined into one big file - Code optimizations can take place License ------- This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Parts of this tool are based on public domain code written by Kimberley Burchett. See http://www.kimbly.com/code/classfile/ for for infos. I have heavily hacked around her code, so don't blame her if you think my code is ugly. The NanoVM ---------- In order to use the converter the NanoVM has to be installed on the target system. See http://www.harbaum.org/till/nanovm for a copy of the NanoVM itself. The NanoVM is correctly installed and working properly if the built-in demo-application runs correctly. The Asuro demo application e.g. prints some output via the IR serial interface and then cycles through a simple LED test application. Javax.comm/RXTX/gnu.io ---------------------- The NanoVMTool has been written in Java, therefore it runs e.g. under Linux and Windows. To allow the converter to upload files directly to the target like e.g. the Asuro, the Java running on the PC needs to get support to access the PCs serial ports. In early versiosn of the nanovm this was done by installing the javax.comm package. The usage of this package is deprecated, since there isn't any Windows support anymore, there has never been MacOS support and usable Linux support has only been added recently. Instead the rxtx/gnu.io is being used (see http://www.rxtx.org/ for details). The NanoVM provides a script in nanovm/doc/install_rxtx.sh to support the installation of rxtx under Linux. Further instructions can be found at http://www.jcontrol.org/download/readme_rxtx_en.html. Without rxtx/gnu.io NanoVMTool will be unable to upload the file to the target system. Running NanoVMTool ------------------ NanoVMTool has been tested under Linux, Windows and MacOS. The basic syntax to call NanoVMTool is: java -jar NanoVMTool.jar CONFIG CLASSPATH CLASS CONFIG is a file containing a target description. It includes information about the supported native classes and the hardware of the target system incl. the interface used for upload. There are two files for the Asuro: Asuro.config and AsuroWin.config, both differ in the name of the serial device used on the PC (COM1 vs. /dev/ttyS0). CLASSPATH is the path to the NanoVM classes to be installed. CLASS is the name of the class to be installed (e.g. AsuroLED). Running NanoVMTool under Linux ------------------------------ The LED demo is being converted and uploaded under Linux using e.g. the command: java -jar NanoVMTool.jar Asuro.config ../examples AsuroLED Running NanoVMTool under Windows -------------------------------- The archive contains a simple batch file (asuro_upload.bat). You'll manually have to adjust the both paths in this file and can then easily convert files just by typing: convert AsuroLED Example files ------------- Example java files for use with the Asuro can be found at http: //www.harbaum.org/till/nanovm

近期下载者

相关文件


收藏者