The IAR compiler specifically generates very tight code; some of the
intrinsics (such as even_in_range) help it do so (while it's possible to
create a function that has the same operational behavior as the intrinsic,
the code generated for the intrinsic is likely to be smaller).  It's quite
possible that gcc can't shrink the TI code down to a size that will fit in
the 32KB available on the CC430F6137.

Try compiling with -Os if you aren't already.  If that doesn't work, you'll
have to remove functions until it fits.

Peter

On Tue, Jun 1, 2010 at 1:53 PM, Paul F. Sehorne <[email protected]> wrote:

> Having gotten past the compiling phase in my effort to port the TI
> Sports Watch code to mspgcc, I'm moving on to the linking phase.
>
> I'm getting the following error:
>
>
> c:\users\paul\documents\programming\texas_instruments\ez430\mspgcc4\bin\..\lib\gcc\msp430\4.4.3\..\..\..\..\bin\msp430-ld.exe:
> build/chronos.430 section `.text' will not fit in region `text'
>
> c:\users\paul\documents\programming\texas_instruments\ez430\mspgcc4\bin\..\lib\gcc\msp430\4.4.3\..\..\..\..\bin\msp430-ld.exe:
> section .vectors loaded at [0000ff80,0000ffff] overlaps section .text
> loaded at [00008000,00012bbd]
>
> c:\users\paul\documents\programming\texas_instruments\ez430\mspgcc4\bin\..\lib\gcc\msp430\4.4.3\..\..\..\..\bin\msp430-ld.exe:
> region `text' overflowed by 11324 bytes
>
> I don't really know where to start.  The mspgcc docs are no help.  I know
> that both IAR and CCS use a linker command file, but I don't know how to
> implement such in mspgcc.
>
> Anypointers are appreciated.
>
> Thanks,
> Paul
>
>
>
>
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> Mspgcc-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mspgcc-users
>

Reply via email to