Getting Started: Java Ahead of Time compilation with VMKit

This page gives you the instructions on how to use the Java ahead of time compiler of VMKit.

  1. Checkout and build VMKit from SVN head.
  2. Compile into a dynamic library the core Java libs (e.g. GNU Classpath):
  3. Update PATH to include LLVM and VMKit binaries (replace *_OBJ with your directory):
  4. Update LD_LIBRARY_PATH to include the dynamic library previously compiled (replace VMKIT_OBJ with your directory):
  5. Use the llcj tool on a class or a jar file: