From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6469 invoked by alias); 21 Feb 2011 14:03:44 -0000 Received: (qmail 6434 invoked by uid 22791); 21 Feb 2011 14:03:43 -0000 X-SWARE-Spam-Status: No, hits=-0.8 required=5.0 tests=AWL,BAYES_20 X-Spam-Check-By: sourceware.org Received: from wp154.webpack.hosteurope.de (HELO wp154.webpack.hosteurope.de) (80.237.132.161) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 21 Feb 2011 14:03:38 +0000 Received: from roscs001.americas.hp.net ([15.251.201.70] helo=[80.237.132.161]); authenticated by wp154.webpack.hosteurope.de running ExIM with esmtpa id 1PrWMP-0006fl-L5; Mon, 21 Feb 2011 15:03:34 +0100 Message-ID: <4D627092.2060409@andihellmund.com> Date: Mon, 21 Feb 2011 14:27:00 -0000 From: Andi Hellmund User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.11pre) Gecko/20100624 Spicebird/0.8 MIME-Version: 1.0 To: charfi asma CC: gcc-help@gcc.gnu.org Subject: Re: Re : [GCC front end] add new TREE CODE References: <64888.39441.qm@web28511.mail.ukl.yahoo.com> <4D596AEA.7030705@andihellmund.com> <741091.71307.qm@web28516.mail.ukl.yahoo.com> In-Reply-To: <741091.71307.qm@web28516.mail.ukl.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2011-02/txt/msg00324.txt.bz2 > > Ian said in his response that if my language is very different than C I should > not use trees. Have you any idea of what I can use instead ? > > Hey Asma, I'm not sure what Ian meant in detail, but I think that he wanted to say that you then shouldn't possibly use the TREE codes and tree-representation of GCC, but to use whatever intermediate representation is appropriate for your needs. If you would look up the literature, you would find tree-based structures as dominant intermediate structure, but most of these books then refer to C-syntax-like languages. Though, it is generally hard to predict which structure perfectly matches your needs. As said, you could use whatever you want. All you need to make sure is to finally translate to GIMPLE at some point. > I look at the ghdl front end and I did not find vhdl-tree.def to see if they > defined a new tree code for this fe. > This file is not mandatory, I think. So, if they don't use one, they might not use additional tree codes. Well, if they use GENERC/tree-based IR at all! Best regards, Andi