From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=BAYES_00,HEADER_SPAM, INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,32898cca6ca4143e X-Google-Attributes: gid103376,public X-Google-Thread: ff499,32898cca6ca4143e X-Google-Attributes: gidff499,public From: Ray Dillinger Subject: Re: Compiler Optimisation? Date: 1998/12/10 Message-ID: <98-12-016@comp.compilers>#1/1 X-Deja-AN: 421004872 Sender: johnl@iecc.com References: <98-12-010@comp.compilers> X-submission-address: compilers@iecc.com X-moderator-address: compilers-request@iecc.com Organization: cognitive Dissidents Keywords: optimize Newsgroups: comp.lang.ada,comp.compilers X-FAQ-and-archives: http://www.iecc.com/compilers Date: 1998-12-10T00:00:00+00:00 List-Id: Iain Bate wrote: > > I am looking for some specific information on compiler optimisation > and I was wondering if anyone could help. Basically, I would like to > get some idea how much faster code executes due to optimisation. I am > looking for the information at two levels: > > 1. How much faster code executes due to the overall optimisation > process? Depends on the language semantics among other things. in LISP and its cousins for example, optimization consists in large part of proving that it's safe to eliminate symbol table checks and type lookups that simply aren't required by the semantics of most languages -- as a result, optimization of a LISP yields a much higher marginal return than, say, optimization of Pascal. > 2. How much faster code executes due to specific optimisation stages, > e.g. the speed-up due to the peephole stage? The speed-up due to the peephole stage in my experience runs between ten and twenty percent of overall speed -- Although, of course, it depends on what you put into the "peephole" stage. I've purposefully *not* done optimization in other stages that could be put off for the peephole optimizer, which tends to make it seem a lot more important. Ray