From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31380 invoked by alias); 20 May 2003 12:01:55 -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 25772 invoked from network); 20 May 2003 11:59:09 -0000 Received: from unknown (HELO touchme.toronto.redhat.com) (207.219.125.105) by sources.redhat.com with SMTP; 20 May 2003 11:59:09 -0000 Received: from localhost.toronto.redhat.com (tornado.toronto.redhat.com [172.16.14.228]) by touchme.toronto.redhat.com (Postfix) with ESMTP id 8623780008E; Tue, 20 May 2003 07:59:08 -0400 (EDT) Subject: Re: [tree-ssa] Any good sources of documentation? From: Diego Novillo To: Marty Hauff Cc: "gcc@gcc.gnu.org" In-Reply-To: References: Content-Type: text/plain Organization: Red Hat Canada Message-Id: <1053430502.19956.91.camel@frodo.toronto.redhat.com> Mime-Version: 1.0 Date: Tue, 20 May 2003 12:19:00 -0000 Content-Transfer-Encoding: 7bit X-SW-Source: 2003-05/txt/msg01856.txt.bz2 On Tue, 2003-05-20 at 02:12, Marty Hauff wrote: > From your response I am assuming that tree-ssa does not parse the > _whole_ program into one huge tree but rather parses each function > individually. > Mainline and tree-ssa are the same codebase (modulo the SSA bits). You could also use the call-graph in tree-ssa. One thing we don't keep are the SSA forms for each function separately. That's a design limitation that we would eventually need to overcome for whole program analysis. > I understand that this strategy uses far less memory but could > tree-ssa be modified to parse the whole program into a single tree and > if so would it break it? > Sure. It would need changing quite a few things, though. You need to support several flowgraphs at the same time, for instance. Right now, the flowgraph uses global data structures and variables. There are some efforts underway to build infrastructure to support whole program analysis, so GCC will eventually grow enough brains to do this. > Specifically I am trying to use the compiler to give me information > about what hardware resources would be most useful for a given > application. > Hardware resources? I'm not sure I follow. There is nothing hardware-related in trees. Diego.