A Custom Compiler that Implements Basic Code Optimizations and Combinatorial Circuit Generation