From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30545 invoked by alias); 21 Dec 2006 17:50:28 -0000 Received: (qmail 30533 invoked by uid 22791); 21 Dec 2006 17:50:27 -0000 X-Spam-Check-By: sourceware.org Received: from web32109.mail.mud.yahoo.com (HELO web32109.mail.mud.yahoo.com) (68.142.207.123) by sourceware.org (qpsmtpd/0.31) with SMTP; Thu, 21 Dec 2006 17:50:18 +0000 Received: (qmail 93403 invoked by uid 60001); 21 Dec 2006 17:50:16 -0000 Message-ID: <20061221175016.93401.qmail@web32109.mail.mud.yahoo.com> Received: from [222.68.242.88] by web32109.mail.mud.yahoo.com via HTTP; Thu, 21 Dec 2006 09:50:16 PST Date: Thu, 21 Dec 2006 17:50:00 -0000 From: Lin George Subject: Re: to reduce footprint To: John Love-Jensen , MSX to GCC MIME-Version: 1.0 Content-Type: text/plain; charset=ascii Content-Transfer-Encoding: quoted-printable 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/msg00328.txt.bz2 Thank fo your great reply John! I have read the document for weak linking, = and it seems that it is something specific for MAC OS? BTW: I am working on Linux. regards, George ----- Original Message ---- From: John Love-Jensen To: Lin George ; MSX to GCC Sent: Thursday, December 21, 2006 11:30:06 PM Subject: Re: to reduce footprint 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. Coul= d 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 __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around=20 http://mail.yahoo.com