ClementTsang / rustcc

A (toy) C compiler written in Rust with no dependencies.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Self reminder to add optimization that was used in wlp4gen

ClementTsang opened this issue · comments

Add various forms of optimization that was learned, basic stuff like constant folding, dead code elimination (basic), strength reduction, and the like should be good to add and should not take long.

Furthermore, clean up some code. The giant chain of stuff in the main generation can be cleaned up.