From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4617 invoked by alias); 4 Apr 2003 16:52:10 -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 4610 invoked from network); 4 Apr 2003 16:52:10 -0000 Received: from unknown (HELO imag.imag.fr) (129.88.30.1) by sources.redhat.com with SMTP; 4 Apr 2003 16:52:10 -0000 Received: from ecrins.imag.fr (ecrins.imag.fr [129.88.43.124]) by imag.imag.fr (8.12.9/8.12.8) with ESMTP id h34Gq9su015659; Fri, 4 Apr 2003 18:52:09 +0200 (CEST) Received: from moy by ecrins.imag.fr with local (Exim 3.35 #1) id 191UQD-0001zO-00; Fri, 04 Apr 2003 18:52:09 +0200 To: Steven Bosscher Cc: gcc@gcc.gnu.org Subject: Re: Where can I get the output of the front-end. From: Matthieu Moy Mail-Followup-To: Steven Bosscher , gcc@gcc.gnu.org Date: Fri, 04 Apr 2003 18:12:00 -0000 In-Reply-To: <1049386407.757.12.camel@steven> (Steven Bosscher's message of "03 Apr 2003 18:13:27 +0200") Message-ID: User-Agent: Gnus/5.090015 (Oort Gnus v0.15) Emacs/21.2 References: <1049386407.757.12.camel@steven> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2003-04/txt/msg00183.txt.bz2 Steven Bosscher writes: > Op do 03-04-2003, om 18:09 schreef Matthieu Moy: >> Hi, >> >> I'm still trying to re-use the front-end of GCC to do some code >> analysis. (I'm using the tree-ssa branch) [...] > Look at tree-optimize.c, or if you want to hook in after the SSA OK, I could do it. I still have 2 questions : * I plugged myself just after the ssa optimizations by adding a function call. What I don't manage to do is to remove the backend ... (My modified code still generates RTL and assembler) * I can see the functions one by one, but is there a moment during the compilation at which we can see the whole program in one single tree ? (A kind of list of functions and declarations) Thanks, -- Matthieu