/nestedvm

nestedvm fork

Primary LanguageJava

Updated NestedVM toolchain

This repository contains an updated NestedVM toolchain that is suitable for building modern C/C++ applications to pure Java bytecode. The official NestedVM project hosted at nestedvm.ibex.org only supports an old version of GCC (3.3.6). Fortunately, Henry Wertz has made available to use GCC 4.8 and an updated newlib, and this repository includes those patches.

This repo also has some bug fixes by David Ehrmann to NestedVM's UnixRuntime and the parsing of ELF files generated by GCC 4.8.

In the future, I would like to test and incorporate John Stroy's updates to the NestedVM runtime as well so that a single repository is available with all of these useful changes.

Below are some system-specific build instructions for this repository; pull requests with steps for other environments are certainly welcome.

Ubuntu 14.04/Debian 8:

apt-get -y update && apt-get -y upgrade
apt-get -y install build-essential libgmp-dev libmpc-dev libmpfr-dev git curl openjdk-7-jdk gcc-4.8 g++-4.8
cd /usr/local/src
git clone https://github.com/bgould/nestedvm
cd /usr/local/src/nestedvm
make cxxtest CC=gcc-4.8 CXX=g++-4.8

CentOS 7:

yum -y update
yum install -y java-1.7.0-openjdk-devel git gmp-devel libmpc-devel mpfr-devel
yum -y groupinstall "Development Tools"
cd /usr/local/src
git clone https://github.com/bgould/nestedvm
cd /usr/local/src/nestedvm
make cxxtest