[Mspgcc-users] Intrinsic functions used in the TI Sports Watch source code

2010-06-01 Thread Paul F. Sehorne
It turns out there are only four intrinsic functions used in the TI Sports Watch source code. I created my own intrinsics.c source file. It is included below. I have implemented three of the four functions. The remaining one should not be hard to do, I just haven't gotten to it yet.

[Mspgcc-users] mspgcc linking problems porting TI Sports Code to mspgcc

2010-06-01 Thread Paul F. Sehorne
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:

Re: [Mspgcc-users] mspgcc linking problems porting TI Sports Code to mspgcc

2010-06-01 Thread Peter Bigot
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

Re: [Mspgcc-users] mspgcc linking problems porting TI Sports Code to mspgcc

2010-06-01 Thread Paul F. Sehorne
Peter, thanks. I had been using -O2 and -O3, but I did not know about -Os. I tried it and the original error is now gone. I am now getting a series of errors like the following: = C:\Users\Paul\cc16wBFJ.o: In function `display_update': main.c:(.text+0x108): warning: internal