a simple compile used to generate intermediate code