OK, yes, if you use -ffunction-sections --gc-sections could help. And that problem was just fixed in SF 3384754 as a side effect of fixing a different one.
It would be nice if folks in other forums that found problems would report them so they would be fixed. (I'd ask for a pony too, but honestly I don't really want one.) Peter On Wed, Aug 3, 2011 at 6:26 AM, aliko <ali.tli...@gmail.com> wrote: > To correct issue I've changed couple of lines in memory.x file as where > suggested in one forum. > from: > KEEP(*(.init)) > *(.init0) /* Start here after reset. */ > *(.init1) /* User definable. */ > *(.init2) /* Initialize stack. */ > *(.init3) /* Initialize hardware, user definable. */ > *(.init4) /* Copy data to .data, clear bss. */ > *(.init5) /* User definable. */ > *(.init6) /* C++ constructors. */ > *(.init7) /* User definable. */ > *(.init8) /* User definable. */ > *(.init9) /* Call main(). */ > > to: > > KEEP(*(.init)) > KEEP(*(.init0)) /* Start here after reset. */ > KEEP(*(.init1)) /* User definable. */ > KEEP(*(.init2)) /* Initialize stack. */ > KEEP(*(.init3)) /* Initialize hardware, user definable. */ > KEEP(*(.init4)) /* Copy data to .data, clear bss. */ > KEEP(*(.init5)) /* User definable. */ > KEEP(*(.init6)) /* C++ constructors. */ > KEEP(*(.init7)) /* User definable. */ > KEEP(*(.init8)) /* User definable. */ > KEEP(*(.init9)) /* Call main(). */ > > And now firmware works good. > The size of firmware using gc-sections is 77% of that not using it and > it does metter I think. > > > ------------------------------------------------------------------------------ > BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA > The must-attend event for mobile developers. Connect with experts. > Get tools for creating Super Apps. See the latest technologies. > Sessions, hands-on labs, demos & much more. Register early & save! > http://p.sf.net/sfu/rim-blackberry-1 > _______________________________________________ > Mspgcc-users mailing list > Mspgcc-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/mspgcc-users > ------------------------------------------------------------------------------ BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA The must-attend event for mobile developers. Connect with experts. Get tools for creating Super Apps. See the latest technologies. Sessions, hands-on labs, demos & much more. Register early & save! http://p.sf.net/sfu/rim-blackberry-1 _______________________________________________ Mspgcc-users mailing list Mspgcc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mspgcc-users