From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 660 invoked by alias); 31 May 2012 08:42:11 -0000 Received: (qmail 650 invoked by uid 22791); 31 May 2012 08:42:10 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,MAY_BE_FORGED,RDNS_NONE X-Spam-Check-By: sourceware.org Received: from Unknown (HELO gw.kuantic.com) (213.244.28.44) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 31 May 2012 08:40:52 +0000 Received: from [10.0.0.43] (E1.s02.p2.bcn1.Coplan.nic.completel.fr [213.244.28.45] (may be forged)) (authenticated bits=0) by gw.kuantic.com (8.14.5/8.14.4) with ESMTP id q4V8bhNt030540 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for ; Thu, 31 May 2012 10:37:46 +0200 Message-ID: <4FC72DD3.8040202@kuantic.com> Date: Thu, 31 May 2012 08:42:00 -0000 From: =?windows-1252?Q?Bernard_Fouch=E9?= User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 MIME-Version: 1.0 To: ecos-devel@ecos.sourceware.org Subject: eCos GNU tools 4.6.3-20120315 and link time optimization References: <4F106345.4080902@siva.com.mk> <4F11574D.9070002@dallaway.org.uk> <4F11AC54.7000902@siva.com.mk> <4F1CB41C.90900@jifvik.org> <4F1DA9A0.5070702@siva.com.mk> <4F1FF5AD.4010901@ecoscentric.com> <4F39887A.5050905@siva.com.mk> <4F50F700.5080902@ecoscentric.com> <4F521D6A.4010500@siva.com.mk> <4F52B2C8.4010809@schuilenburg.org> <4F53C46B.4090502@dallaway.org.uk> <4F53FF0D.80107@ecoscentric.com> <4F574D4A.2090407@ecoscentric.com> <4F58EC32.9070103@ecoscentric.com> <4F5B8C70.4080208@dallaway.org.uk> <4F5E204B.5040402@ecoscentric.com> <4F5F4BFE.7030100@ecoscentric.com> <4F5F5691.4090009@siva.com.mk> <4F6632F4.9050603@siva.com.mk> <4F7C453B.8080107@televic.com> <4F7C4A0C.40200@siva.com.mk> In-Reply-To: <4F7C4A0C.40200@siva.com.mk> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact ecos-devel-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: ecos-devel-owner@ecos.sourceware.org X-SW-Source: 2012-05/txt/msg00006.txt.bz2 Hi, I did some testing of 4.6.3 on my Cortex-M3 LPC1765 based app, using the eCos CVS repo code. I use -Os and my goal is to reduce the code size: 4.3.2: 153172 bytes 4.6.3: 144556 bytes 4.6.3, app only compiled with -flto: 136404 bytes The improvement is significant and the app still works ;-) However I wasn't able to link with eCos compiled with -flto and -Wl,--allow-multiple-definition, the linker fails with: target.a: could not read symbols: Bad value I could link adding '-fno-use-linker-plugin' but then I'm back to 144028 bytes! Did anyone succeeded in compiling/linking an application and eCos with -flto?? Thanks, Bernard