On Thu, Oct 29, 2009 at 12:41, Antonio Rosa
<[email protected]>wrote:

>
> Following the instructions on the website discussed above, is achieved by
> properly installing the toolchain msp430X, what happens that as we are
> going
> to use from TinyOS, which is implemented in NESC should be performed some
> simple modifications to adapt the differences existing between the GCC
> Toolchain and ncc of TinyOS.
> In particular the modification to make is to add in the file located in the
> directory:
> /opt/mspgcc/sf/packaging/build/binutils-2.18/gas/config/tc-msp430.h
> in  the “#define LEX_DOLLAR 0”
> the following line:
>        #undef LEX_DOLLAR
>
> The reason for adding this line of code is because there is a historical
> error due to GCC and NESC, NESC used as the separator "$" and the GCC
> compiler does not recognize it, then in order to adjust the toolchain and
> not give msp430x build problems with TinyOS (uses language NESC).
> But in order to this change becomes effective, it must be done before
> running the command CC = gcc-3.4 make build ". Therefore we must modify the
> makefile in the directory /opt/mspgcc/sf/packaging.
>
> In order to make this change, I downloaded the file tc-MSP430, added the
> modification explained above, saved that file in /opt/mspgcc and finally
> added these two commands in the makefile just before applying the patches
> to
> binutils-2.18 :
>
> rm-r / opt/mspgcc/sf/packaging/build/binutils-2.18/gas/config/tc-msp430.h
> cp-r / opt/mspgcc/tc-msp430.h /
> opt/mspgcc/sf/packaging/build/binutils-2.18/gas/config/tc-msp430.h
>
>
As long as you are using nesC that is more recent than 1.2.9, you don't have
to do any patching, just add -fnesc-separator=__ to PFLAGS. BTW this will be
the default in the next release.

Vlado
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to