From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16864 invoked by alias); 22 Jul 2002 06:45:00 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 16856 invoked from network); 22 Jul 2002 06:44:59 -0000 Received: from unknown (HELO disaster.jaj.com) (66.93.20.253) by sources.redhat.com with SMTP; 22 Jul 2002 06:44:59 -0000 Received: (from phil@localhost) by disaster.jaj.com (8.11.4/8.11.4) id g6M6ipr17729; Mon, 22 Jul 2002 01:44:51 -0500 Date: Mon, 22 Jul 2002 06:23:00 -0000 From: Phil Edwards To: Daniel Berlin Cc: Andreas Jaeger , Jason Merrill , Richard Henderson , Per Bothner , Diego Novillo , Mark Mitchell , gcc@gcc.gnu.org Subject: Re: Language-independent functions-as-trees representation Message-ID: <20020722024451.A17721@disaster.basement.lan> References: <20020721200313.A15719@disaster.basement.lan> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from dberlin@dberlin.org on Mon, Jul 22, 2002 at 01:35:30AM -0400 X-SW-Source: 2002-07/txt/msg01008.txt.bz2 On Mon, Jul 22, 2002 at 01:35:30AM -0400, Daniel Berlin wrote: > On Sun, 21 Jul 2002, Phil Edwards wrote: > > > It would only make sense with whole program optimizations for > > > interprocedural analysis. Currently GCC does not do anything of this > > > kind but we should think forward and whole program optimizations is > > > something that some of us might want to see. > > > > I was under the impression that this kind of whole-program IPA could only > > be done in the linker. Or at least, in whatever tool is performing the > > role of the linker. > > Only? > Certainly not, there are tons of ways to do it. Sorry, I was thinking of the present situation, where the compiler (usually) never sees the whole program at once. > And it's not usually done "in" the linker. > The linker just calls the front/middle/back end (varies by compiler), > with the names of all the objects, Ah, hadn't thought of that. Usually when I think of IPA, I think of a smarter linker, rather than a smarter back end with a linker that knows how to call back to it. > or, loads a shared lib and hands it > the sections that contain the IPA data. Hmmmm... Phil -- If ye love wealth greater than liberty, the tranquility of servitude greater than the animating contest for freedom, go home and leave us in peace. We seek not your counsel, nor your arms. Crouch down and lick the hand that feeds you; and may posterity forget that ye were our countrymen. - Samuel Adams