This is the mail archive of the
ecos-devel@sourceware.org
mailing list for the eCos project.
eCos GNU tools 4.6.3-20120315 and link time optimization
- From: Bernard Fouché <bernard dot fouche at kuantic dot com>
- To: ecos-devel at ecos dot sourceware dot org
- Date: Thu, 31 May 2012 10:37:39 +0200
- 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>
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