Okay, now I have a simple serialized form for the IR and a simple emulator that can execute that serialized IR.

Being able to validate the IR before and throughout optimization will hopefully save some time chasing (some) bugs in final output code backwards through the guts of the compiler....

https://github.com/swetland/spl/blob/dev/iremu/iremu.c

#Projects #Compiler

@swetland Have you explicitly defined which IR subsets are acceptable input and expected output for each compiler stage?