I’ve got it to work, well, I actually got it to work almost a week ago, but since I was unable to post that on time, here it is. Code generator now works, and outputs code tree, plus some intermediate code. There’s pretty much zero optimizing, it only does some tricks to the tree (converts tree leafs which hold constant values into operands for opcodes).
Every block is custom tree, optimizer works for every tree, then it runs again for the whole set of blocks:

0 Responses to “HybriC code generator”