Re: Is global optimization worth it?

Lex Spoon <lex@cc.gatech.edu>
20 Dec 2001 00:48:44 -0500

          From comp.compilers

Related articles
Is global optimization worth it? lance.delahaye@xtra.co.nz (2001-12-15)
Re: Is global optimization worth it? nmm1@cus.cam.ac.uk (2001-12-20)
Re: Is global optimization worth it? rsherry8@home.com (Robert Sherry) (2001-12-20)
Re: Is global optimization worth it? mwso@earthlink.net (Gary Oblock) (2001-12-20)
Re: Is global optimization worth it? lex@cc.gatech.edu (Lex Spoon) (2001-12-20)
Re: Is global optimization worth it? lance.delahaye@xtra.co.nz (2002-01-24)
Re: Is global optimization worth it? lance.delahaye@xtra.co.nz (2002-01-24)
Re: Is global optimization worth it? nmm1@cus.cam.ac.uk (2002-01-24)
Re: Is global optimization worth it? rinie@xs4all.nl (Rinie Kervel) (2002-01-28)
Re: Is global optimization worth it? nmm1@cus.cam.ac.uk (2002-01-30)
Re: Is global optimization worth it? rinie@xs4all.nl (Rinie Kervel) (2002-02-06)
| List of all articles for this month |

From: Lex Spoon <lex@cc.gatech.edu>
Newsgroups: comp.compilers
Date: 20 Dec 2001 00:48:44 -0500
Organization: Georgia Institute of Technology
References: 01-12-069
Keywords: optimize
Posted-Date: 20 Dec 2001 00:48:44 EST

lance.delahaye@xtra.co.nz (Lance) writes:
> I'm starting a compiler project. I am wondering if it is worth
> ignoring global optimisations for a pascal-type scoped language. About
> how much optimisation gain is there to be had there? If its more than
> about a third, I probably shouldn't ignore it, but it would simplify
> my life quite a bit if I could.


I'll try to avoid all the complexity, and just suggest two things.


First, look at the assembly code your compiler produces for typical
programs without any optimization. Then you can get a good idea of
what improvements are possible.


Second, don't forget to consider your priorities! How important is
speed for you, really? Don't just say "very" -- honestly decide how
much it would be worth to double (triple... quadruple...) the speed
of all programs your compiler outputs.




-Lex


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.