From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26444 invoked by alias); 21 Oct 2002 15:37:29 -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 26436 invoked from network); 21 Oct 2002 15:37:26 -0000 Received: from unknown (HELO ns2.tudelft.nl) (130.161.180.65) by sources.redhat.com with SMTP; 21 Oct 2002 15:37:26 -0000 Received: from CONVERSION-DAEMON.mailhost1.tudelft.nl by mailhost1.tudelft.nl (PMDF V6.1-1 #40924) id <0H4C007018QDDF@mailhost1.tudelft.nl> for gcc@gcc.gnu.org; Mon, 21 Oct 2002 17:37:26 +0200 (MEST) Received: from lr0nt3.lr.tudelft.nl (lr0nt3.lr.tudelft.nl [130.161.166.23]) by mailhost1.tudelft.nl (PMDF V6.1-1 #40924) with ESMTP id <0H4C002DL8QCK0@mailhost1.tudelft.nl>; Mon, 21 Oct 2002 17:37:24 +0200 (MEST) Received: by lr0nt3.lr.tudelft.nl with Internet Mail Service (5.5.2656.59) id <44B3R20S>; Mon, 21 Oct 2002 17:33:01 +0200 Content-return: allowed Date: Mon, 21 Oct 2002 11:38:00 -0000 From: "S. Bosscher" Subject: Re: An ask for documentation of trees To: "'dima@pulsepow.hop.stu.neva.ru'" Cc: "'gcc@gcc.gnu.org'" Message-id: <4195D82C2DB1D211B9910008C7C9B06F01F372D0@lr0nt3.lr.tudelft.nl> MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-1 X-SW-Source: 2002-10/txt/msg01253.txt.bz2 > I'm currently developing a front-end for a language. I've read > in the docs that using RTL for interfacing front-end and the bulk > of GCC is a Bad Thing. And that trees should be used for it. So > the question is: what should be done in the front-end to use > trees? The language is not much similar to C, so some new types of > tree nodes should be defined and implemented. How is this done? > Thanks in advance. 1) Check out the tree-ssa branch, see the projects/tree-ssa/ for information about this. 2) Have a look at the C++ front end. 3) Go see http://home.wanadoo.nl/btp91/gcc/gcc-ast.html. It's incomplete but still useful. 4) Have a look at http://gcc.gnu.org/onlinedocs/gccint/, and read http://gcc.gnu.org/onlinedocs/gccint/Trees.html#Trees. These pages try to document what you can find in {tree, c-common, cp-tree}.{def,h}. Hope this helps, Greetz Steven