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


Reply via email to