From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25613 invoked by alias); 18 Jan 2004 22:50:43 -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 25605 invoked from network); 18 Jan 2004 22:50:42 -0000 Received: from unknown (HELO nondot.org) (128.174.245.159) by sources.redhat.com with SMTP; 18 Jan 2004 22:50:42 -0000 Received: by nondot.org (Postfix, from userid 501) id E5EC917C035; Sun, 18 Jan 2004 18:09:49 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by nondot.org (Postfix) with ESMTP id E282424C1F2; Sun, 18 Jan 2004 17:09:49 -0600 (CST) Date: Sun, 18 Jan 2004 22:50:00 -0000 From: Chris Lattner To: Jan Hubicka Cc: Jan Hubicka , Richard Henderson , "Kaveh R. Ghazi" , , , "Joseph S. Myers" Subject: Re: Can we speed up the gcc_target structure? In-Reply-To: <20040118224838.GL5119@kam.mff.cuni.cz> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SW-Source: 2004-01/txt/msg01211.txt.bz2 On Sun, 18 Jan 2004, Jan Hubicka wrote: > If you mark no symbols via special attribute, only main should be > external. If you mark more, you get more. Ok, I see. > > > I suppose this is mostly equivalent to what LLVM have except for the > > > fact that list of symbols with external linkage is boundled in the > > > source itself, instead of being in separate file. Do you have any > > > experience with the separate file having considerable benefits? > > > > I'm not sure if I understand what you mean here, can you please clarify? > > You mentioned that instead of using attribute in the source file, you > get list of functions. From here the lists are comming? We use an external file (a linker script basically) to decide the list. You can also specify the list with a -Wl option. > > (for example) dynamically load shared objects that call back into the main > > program. People will get unhappy if 'gimp' doesn't work in this mode, for > > example. > > I expect people to just mark the interface functions via the attribute. Ok, great. :) -Chris -- http://llvm.cs.uiuc.edu/ http://www.nondot.org/~sabre/Projects/