Betreff: Re: [Mspgcc-users] ld flag --gc-sections not working any more? Gesendet: Mi, 03. Aug 2011 Von: Peter Bigot<[email protected]>
> If you see a reduction in code size when you use --gc-sections, and > what it removes really wasn't necessary, figure out why it got put in > there in the first place and fix it there. You're right that --gc-sections only makes sense in conjunciton with compiler support. However, it is a really nice feature. I use it all the day on the older mspgcc3. It is really useful if you use sourcecode libraries. Here usually a bunch of funcitons are combined in a signle source code file. Maybe functions for encoding and decoding, or for math. But in the firmware, only a few of them are used. So it is useful if the linker doesn't link the wjole object file but only those functions that are really used. Sure, you can put every function into a separate C file and include all you need into your project/makefile, but this can really fast grow really large. So I'd like to see this functionality working (preferrably error-free) on the new mspgcc too. If I can ever switch to it, that is. Currently, I'm forced to still use the old mspgcc3, as its bugs are known and workarounds are implemented. I simply cannot risk to switch over (and I'm still missing a installable windows version that rusn without recompiling and such) an dpossibly break our existing firmware for productivity projects. ------------------------------------------------------------------------------ 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 [email protected] https://lists.sourceforge.net/lists/listinfo/mspgcc-users
