chibicc
chibicc copied to clipboard
More ideas for optimizations
Hello :)
I have a couple more ideas for optimizations.
- I see in the generated code a few instances of
#00 ORA, which could be removed. - Static arithmetic in oneko, like
;theCursor_ #0004 ADD2, which could be merged into a LIT2. - Another static arithmetic operation is
#0100 SWP, this could be#0001. - In the atoi implementation, you'll find
DUP2 #0000 EQU2, which could be turned intoORAk #00 EQU #0000 SWP, to#0000