Compiler design
Code optimisation
Find leaders and basic blocks, draw the flow graph, and apply constant folding, propagation, CSE, strength reduction and dead-code elimination step by step.
Compiler design
Find leaders and basic blocks, draw the flow graph, and apply constant folding, propagation, CSE, strength reduction and dead-code elimination step by step.