From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13295 invoked by alias); 11 Jan 2005 10:56:16 -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 13169 invoked from network); 11 Jan 2005 10:55:54 -0000 Received: from unknown (HELO gecko.sbs.de) (194.138.37.40) by sourceware.org with SMTP; 11 Jan 2005 10:55:54 -0000 Received: from mail2.sbs.de (mail2.sbs.de [192.129.41.66]) by gecko.sbs.de (8.12.6/8.12.6) with ESMTP id j0BAtrQd014513 for ; Tue, 11 Jan 2005 11:55:53 +0100 Received: from sbas063a.ww011.siemens.net (sbas063a.sbas.ww011.siemens.net [158.92.186.172]) by mail2.sbs.de (8.12.6/8.12.6) with ESMTP id j0BAtqQ6028212 for ; Tue, 11 Jan 2005 11:55:53 +0100 Received: from rbgs558a.ww011.siemens.net ([144.145.110.8]) by sbas063a.ww011.siemens.net with Microsoft SMTPSVC(6.0.3790.211); Tue, 11 Jan 2005 11:55:52 +0100 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: Optimization, remove unused code from Image Date: Tue, 11 Jan 2005 10:56:00 -0000 Message-ID: <19AB86FC7E565F40909E0589859E3F225BF563@rbgs558a.ww011.siemens.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: From: "Labermeier Norbert" To: X-OriginalArrivalTime: 11 Jan 2005 10:55:52.0798 (UTC) FILETIME=[1E5C6FE0:01C4F7CC] X-SW-Source: 2005-01/txt/msg00070.txt.bz2 Hi all, I'd like to remove unused code from my embedded binary image, but I didn't succeed find the right compiler/linker switch. With unused code I talk about functions which are not called but part of a source file. Main target for me is to reduce code size. I'm currently working with a PPC and GCC-2.96 from VxWorks.=20 I've already tested with -Os to reduce size but I didn't succeed to remove the unused functions. Can anybody give me some hints. Kind regards, Norbert