From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26738 invoked by alias); 21 Dec 2006 15:30:58 -0000 Received: (qmail 26707 invoked by uid 22791); 21 Dec 2006 15:30:56 -0000 X-Spam-Check-By: sourceware.org Received: from exprod6og50.obsmtp.com (HELO exprod6og50.obsmtp.com) (64.18.1.181) by sourceware.org (qpsmtpd/0.31) with SMTP; Thu, 21 Dec 2006 15:30:46 +0000 Received: from source ([192.150.11.134]) by exprod6ob50.postini.com ([64.18.5.12]) with SMTP; Thu, 21 Dec 2006 07:30:44 PST Received: from inner-relay-1.corp.adobe.com ([153.32.1.51]) by outbound-smtp-1.corp.adobe.com (8.12.10/8.12.10) with ESMTP id kBLFRgvV002561; Thu, 21 Dec 2006 07:27:46 -0800 (PST) Received: from fe1.corp.adobe.com (fe1.corp.adobe.com [10.8.192.70]) by inner-relay-1.corp.adobe.com (8.12.10/8.12.10) with ESMTP id kBLFTfPZ017495; Thu, 21 Dec 2006 07:30:39 -0800 (PST) Received: from namailgen.corp.adobe.com ([10.8.192.91]) by fe1.corp.adobe.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 21 Dec 2006 07:30:07 -0800 Received: from 10.32.16.88 ([10.32.16.88]) by namailgen.corp.adobe.com ([10.8.192.91]) via Exchange Front-End Server namailhost.corp.adobe.com ([10.8.192.72]) with Microsoft Exchange Server HTTP-DAV ; Thu, 21 Dec 2006 15:30:06 +0000 User-Agent: Microsoft-Entourage/11.2.5.060620 Date: Thu, 21 Dec 2006 15:30:00 -0000 Subject: Re: to reduce footprint From: John Love-Jensen To: Lin George , MSX to GCC Message-ID: In-Reply-To: <20061220164547.28806.qmail@web32110.mail.mud.yahoo.com> Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit 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: 2006-12/txt/msg00327.txt.bz2 Hi George, > Could you provide some references to them? The C++ Programming Language (special edition) by Stroustrup Chapter 13 in particular. Other highly recommended references in general... C++ FAQs by Cline, Lomow, Girou Large-Scale C++ Software Design by Lakos C++ Coding Standards by Sutter, Alexandrescu Exceptional C++ by Sutter More Exceptional C++ by Sutter Exceptional C++ Style by Sutter Debugging the Development Process by Maguire Code Complete by McConnell Writing Solid Code by Maguire > Could you provide some reference about weak linker and a strong (explicit linker)? Know your linkage: weak, vague, strong, external, static. (I probably missed a few.) Google turned up this URL: http://developer.apple.com/documentation/MacOSX/Conceptual/BPFrameworks/Conc epts/WeakLinking.html > I can understand what you mean, but I do not know why if header files emit code, the footprint will be larger? If a header emits stuff, then every translation that includes that header will emit that code. If you have 1000 source files which include that header, you will have 1000 copies of the stuff emitted by that header. So, yes, the footprint will be larger. > gcc manual does not contain much information about these parameters. Could you briefly introduce the functions of them? I'm not that familiar with them, myself. They are not supported on the platforms I use. I can only refer you to the GCC manual. HTH, --Eljay