[CST-2] Optimising Compiler

Raymond Chan rwlc3@cam.ac.uk
Sun, 3 Jun 2001 14:26:41 +0100


> Has Alan Mycroft ever mentioned what/how optimisation can we achieve, once
> we have done control flow analysis?  (Or is it mentioned somewhere in the
> references?)

I think in the lectures he mentioned how it was useful for optimising
indirect calls - usually we have to assume an indirect call could call any
other function - I think control flow analysis helps you to narrow down
which functions it could call. This gives you a simpler call graph, which is
good because... err... I'm not sure... someone finish my answer please!

Raymond