How to compile and test peephole patterns

Introduction

You will find the benchmark from year 2009 (and other years, but those aren't important) in the GitHub repository. It contains also a bunch of scripts:

Environment Settings

Before running those scripts, make sure you have set up your environment variables. In particular, note that the joosa- wrapper expects to find a binary called joos on your PATH that implements your peephole optimizations. Also, please note: if you are not using bash as your shell you might need to replace instances of ${OSTYPE} and $OSTYPE in the scripts with a hard path to the binaries you want in $JOOSDIR/bin.

Scripts Usage

Finally, you might want to read the provided READMEs if you want more insight as to how the scripts work and how you can use them to focus on specific problems.