[Tinyos-devel] avr-gcc 4.x upgrade
Kevin Klues
klueska at gmail.com
Tue Oct 23 20:49:31 PDT 2007
Tomorrow sometime, I plan to run through a full test of all the
applications included with a distribution and test them against
avr-gcc 4 (i.e. with make mica2 as well as make micaz).
If everything turns out fine, we will discuss making it the supported
version during the next core working group meeting (wednesday the
31st).
Kevin
On 10/23/07, Janos Sallai <sallai at isis.vanderbilt.edu> wrote:
>
>
>
>
> I spent some time with avr-gcc 4.x in the past few days. It appears to works
> fine with T2. All the apps compile the same way as with avr-gcc 3.x. The
> select few I installed on real motes appeared to work as expected. The code
> size is typically 5% smaller. I can share with you the outputs of "make
> micaz", should you be interested in the details.
>
>
>
> The following modifications need to be made in order to set up an avr-gcc
> 4.x based build environment.
>
> - upgrade to nesc 1.2.9
>
> - upgrade to the latest stable binutils/avr-gcc/avr-libc with
> patches for the new Atmel MCUs
>
> - update make files with dual support for avr-gcc 3.x and 4.x
>
> - optionally, install avrdude (an in-system programmer that supports
> the new Atmel MCUs)
>
>
>
> Should you be interested in testing the updated toolchain, the srpms and
> rpms (for linux and windows) are available at
>
> http://www.isis.vanderbilt.edu/Projects/NEST/tinyos-2.x-iris/tools/release/external-tools/
>
>
>
> The updated makefiles are at
>
> http://www.isis.vanderbilt.edu/Projects/NEST/tinyos-2.x-iris/support/make/
>
> (make sure to copy over the avr directory, as well)
>
>
>
> So the bottom line is that it might not be that painful of a step to move
> over to gcc 4.x. Of course, we would need to thoroughly test the generated
> code before we make the move. One potential problem I am aware of is the
> removal of some gcc extensions with version 4.x, such as cast expression as
> lvalue, which some third party code may use. There were some other concerns
> that came up in the telecon, which I can't recall.
>
>
>
> I'd be particularly interested in David Moss's tunit test results with an
> avr-gcc 4.x based toolchain. If that works fine, I'd be pretty confident
> that there are no major issues with a potential upgrade.
>
>
>
> Janos
>
>
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.5.488 / Virus Database: 269.15.3/1081 - Release Date: 10/19/2007
> 5:41 PM
>
> _______________________________________________
> Tinyos-devel mailing list
> Tinyos-devel at Millennium.Berkeley.EDU
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-devel
>
>
--
~Kevin
More information about the Tinyos-devel
mailing list