This is the mail archive of the ecos-devel@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

eCos GNU tools 4.6.3-20120315 and link time optimization


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]