The compiler works for the subset of Joy functions that deal strictly in manipulating stacks and their contents.