On 04/10/11 17:20, Peter Bigot wrote: > On Tue, Oct 4, 2011 at 9:34 AM, David Brown<da...@westcontrol.com> wrote: > >> >> Does link-time optimisation work on mpcgcc? As LTO matures, it should make >> things like -ffunction-sections obsolete (compile everything with -flto, >> then use -fwhole-program in the link). Of course, LTO makes debugging a bit >> more of a challenge. >> > > The msp430 extensions to binutils have not been adapted for LTO. Assessment > of LTO is part of phase 6 on a proposed roadmap for mspgcc enhancements. > Phases 1 through 5 are estimated to be 500 hours effort and will lead to > 20-bit support. I hope to start within a few weeks. >
I am consistently impressed by how much you manage to do for mspgcc. Although I haven't actually used the compiler for some time (I've recently used AVR's more on small projects), I am very grateful to you (and the other mspgcc developers). Although I think LTO will be a big step forward, I fully agree with your prioritising - lack of 20-bit support is a hinder for mspgcc. I have a project where we had to move from mspgcc to Code Composter, to get the support for large flash space - and it really was a step into the dark ages. If only TI would sponsor you, with the aim of shifting out the CCS tools with mspgcc! > Peter > > >> >> mvh., >> >> David >> >> >> >> On 04/10/2011 16:18, Peter Bigot wrote: >> >>> Use the version of mspgcc on the current git trunk, or wait for the >>> first 4.6.x-based release which will include the following: >>> >>> commit dbd2219822a8ddbd59238c154f84cd**d4b0c065c3 Author: Peter A. >>> Bigot<pabigot@users.**sourceforge.net<pabi...@users.sourceforge.net>> >>> Date: Fri Aug 5 08:32:31 2011 >>> -0500 >>> >>> Put function-local string constants into unique rodata where >>> appropriate >>> >>> Peter >>> >>> On Tue, Oct 4, 2011 at 8:56 AM, Bustamante, >>> Paul<pbustama...@ceit.es>**wrote: >>> >>> Dear all, >>>> >>>> I have a question with GCC compiler. When I have a function that I >>>> don't need to compile, I use the options "-ffunction-sections >>>> -fdata-sections" and in the linker --gc-sections. That's ok, but if >>>> I have a sentence like this, inside that function: printf("text to >>>> print");, I saw that in the code I have the string "text to print", >>>> and if I have more, more large is the code. >>>> >>>> Somebody can tell me how to avoid this? >>>> >>>> Best regards, >>>> >>>> Paul >>>> >>>> > ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2dcopy1 _______________________________________________ Mspgcc-users mailing list Mspgcc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mspgcc-users