From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21028 invoked by alias); 11 Jan 2005 11:29:36 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 20312 invoked from network); 11 Jan 2005 11:29:11 -0000 Received: from unknown (HELO web86106.mail.ukl.yahoo.com) (217.12.12.51) by sourceware.org with SMTP; 11 Jan 2005 11:29:11 -0000 Message-ID: <20050111112910.79333.qmail@web86106.mail.ukl.yahoo.com> Received: from [194.200.65.239] by web86106.mail.ukl.yahoo.com via HTTP; Tue, 11 Jan 2005 11:29:10 GMT Date: Tue, 11 Jan 2005 11:29:00 -0000 From: Graham Stott Subject: Re: Optimization, remove unused code from Image To: Sriharsha , gcc-help@gcc.gnu.org In-Reply-To: <41E3B71D.9040407@redpinesignals.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-SW-Source: 2005-01/txt/msg00073.txt.bz2 All, It is possible to eliminated unused functions on many but not all targets supported by GCC. Use -ffunction-sections when compling and and --gc-sections when linking.