The ETH Research COmpiler (ERCO) is a research Java byte-code to native compiler that is used in several projects in our group as for teaching in advanced compiler classes. We translate the Java bytecode to an internal representation in static single assignment form on which we perform several analyses and some optimizations. The backend generates native object file for the Intel IA-32 platform which are then linked to the Java runtime system provided by the GCJ project.
Install & configure
To be able to use ERCO and the programs compiled with ERCO you will need:
- A machine with an Intel IA-32 (x86) processor
- A Java compiler and virtual machine (as Sun's JDK). Support for JDK 1.4.0 is not yet completed, if you want more information take a look to our bug tracking system.
- The GNU Compiler for the Java Programming Language. At the moment ERCO need version 2.96 (3.x is not supported). You can download it here.
- A C compiler (as GCC)
ERCO has not yet reached a stage suitable for a public release. This page is meant to be useful for our students involved in the project. If you want more informatio please contact or
- Download the ERCO package
- Extract the ERCO source tree
- Run the configure script to set up ERCO for your configuration (configuration options).
This small howto describes how to build a fresh liberco.
How to get ERCO using CVS:
- set the CVSROOT environment variable to :pserver::/usr/local/cvsrep/erco
- check out the source tree: cvs co erco
In addition you can also check out the erco_test and erco_doc trees with some test programs and various documentation respectively.
- ERCO classes JavaDoc (daily updates, requires a valid ERCO CVS account to be browsed).
- WWW interface to the CVS repository (requires a valid ERCO CVS account to be browsed).
- A quick guide to new ERCO user
The compiler is invoked with ercc. Options can be specified either on the command line or in the ercc.props file (in the etc directory).
For comments and questions about ERCO please contact:
You can add or check bug reports using bugzilla
We have a mailing list for ERCO developers: ERCO mailing list <> >
- To subscribe: ERCOdev administration
- View the list archive (you can access to the old majordomo archive here)
- CVS and WWW administration page (password required)