bit-hack/nano-script

Add code optimizer

Closed this issue · 3 comments

CCLM currently generates code as a 1:1 mapping between source and ASM.
Add a peephole optimizer to clean up basic redundancies in the generated code.

I have added a peephole mechanism in commit: b5565da

Peephole spans generated by the fuzz tester can be found here: https://gist.github.com/8BitPimp/2e02c9eb8ef49aef844cbda5a4711a42

An optimizer has been in the master branch for a long while now.