Getting Started: VMKit and MMTk
This page gives you the instructions on how to build VMKit with MMTk's Mark and Sweep Garbage Collector.
- Checkout and build LLVM-GCC from SVN head.
- Update PATH to include the llvm-gcc binary.
- Re-configure LLVM.
- Configure VMKit with two additional options: --with-gc=mmtk and --with-llvmgcc.
- Clean and make VMKit (do that each time you change the source code of VMKit):
- make ENABLE_OPTIMIZED=1 clean
- make ENABLE_OPTIMIZED=1
- Run VMKit with MMTk:
- Release/bin/j3 Foo