From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32154 invoked by alias); 15 Feb 2011 17:25:12 -0000 Received: (qmail 32137 invoked by uid 22791); 15 Feb 2011 17:25:11 -0000 X-SWARE-Spam-Status: No, hits=-1.0 required=5.0 tests=AWL,BAYES_50,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (216.239.44.51) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 15 Feb 2011 17:25:06 +0000 Received: from kpbe20.cbf.corp.google.com (kpbe20.cbf.corp.google.com [172.25.105.84]) by smtp-out.google.com with ESMTP id p1FHP4sD028498 for ; Tue, 15 Feb 2011 09:25:04 -0800 Received: from iwc10 (iwc10.prod.google.com [10.241.65.138]) by kpbe20.cbf.corp.google.com with ESMTP id p1FHOn2M006363 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Tue, 15 Feb 2011 09:25:03 -0800 Received: by iwc10 with SMTP id 10so364296iwc.28 for ; Tue, 15 Feb 2011 09:25:03 -0800 (PST) Received: by 10.231.37.10 with SMTP id v10mr1473813ibd.191.1297790702893; Tue, 15 Feb 2011 09:25:02 -0800 (PST) Received: from coign.google.com (dhcp-172-22-125-221.mtv.corp.google.com [172.22.125.221]) by mx.google.com with ESMTPS id d21sm3756653ibg.15.2011.02.15.09.25.01 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 15 Feb 2011 09:25:02 -0800 (PST) From: Ian Lance Taylor To: kevin diggs Cc: gcc-help@gcc.gnu.org Subject: Re: code gen for C string literals References: Date: Tue, 15 Feb 2011 19:42:00 -0000 In-Reply-To: (kevin diggs's message of "Tue, 15 Feb 2011 10:02:38 -0600") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-System-Of-Record: true X-IsSubscribed: yes 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/msg00219.txt.bz2 kevin diggs writes: > I am asking if there is something like STRING_CST that the frontend > will return for for global'ish (i.e. non-auto stuff that is found from > locations other than the stack) data items that I can similarly search > the code for. No. Unless you count MEM. > P.S.: If you would be so kind as to jot down a sentence or two as to > what GIMPLE (some other frontends' tree?) is and how it relates to > SIMPLE (C frontend tree representation) I would REALLY appreciate it! > Ditto for something called SSA? GIMPLE is the representation used by the middle-end. GENERIC is the tree representation used by the C and C++ frontends, and also used by GIMPLE for operands and types. Both the C and C++ frontends extend GENERIC with frontend specific tree codes; thus, both frontends use a tree representation, and GENERIC is the shared subset of their tree representations. SIMPLE is a different intermediate representation used by a different compiler, which influenced the designed of GENERIC and then GIMPLE used by gcc. SSA is a compiler optimization technique which heavily influences the design of the intermediate representation. See http://en.wikipedia.org/wiki/Static_single_assignment_form . Ian