wiki:compiler/dideas

Version 2 (modified by eamiri, 9 years ago) (diff)

--

This page has ideas that may be useful during re-design of the compiler.

1- For each variable we want to have a single object of class bitexpr.Var. All occurrences of this variable in the code should be pointers to this object. Hopefully this will reduce the time spent on copying code in the compiler using copy.deepcopy()

2- An independent component for common subexpression elimination is needed.

3- After the abstract tree is built, we need a checker pass that checks the syntax of the input.