From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 102b75,4820dfa6cb2bff3e X-Google-Attributes: gid102b75,public X-Google-Thread: 111c93,3626ccca6bb70e55 X-Google-Attributes: gid111c93,public From: lindsay@best.com (Donald C. Lindsay) Subject: Re: 21264 performance anomalies Date: 1999/04/23 Message-ID: <7fr7hh$g15$1@localhost.best.com>#1/1 X-Deja-AN: 470226903 References: <87d81hkqw0.fsf@pfaffben.user.msu.edu> <372113DF.7886F290@igs.net> X-Trace: nntp1.ba.best.com 924921930 228 209.24.164.210 Organization: very little Reply-To: don.lindsay@acm.org Newsgroups: comp.os.linux.alpha,comp.arch In article , Zalman Stern wrote: >Paul DeMone (pdemone@igs.net) wrote: >: I guess I was unclear. I meant that a binary recompiler could take >: the Alpha executable image generated by gcc and recompile and reschedule >: the code. >Now I suppose you can say all information is in the binary. And I suppose >that's true in some sense if you have access to the entirety of the bits >that are used in the binary and an infinite amount of time to do the >optimization :-) No one sensible ever said that there was One True Place to insert all optimizations. Of course there are ones that are best done at preprocessor time, or at parse time, or whenever. However, there are a whole bunch of things that are best done at or after link time. For example, you learn if called routines are in shared libraries. You learn the sizes of constant pools, and learn which C++ method invocations don't need table lookup. And, more to the point, you can reschedule code for the CPU at hand. Post-link-time optimization is just really useful. I've used (and modified) the Alpha's binary rewriting tools and their speed is not some sort of big issue. Binary rewriting is one of those things that we should have thought of sooner. -- Don Donald C. Lindsay www.best.com/~dlindsay