avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-gcc-list] Fwd: [Tinyos-help] TinyOs avr-gcc-4


From: David Gay
Subject: [avr-gcc-list] Fwd: [Tinyos-help] TinyOs avr-gcc-4
Date: Sat, 13 Oct 2007 18:02:08 -0700

Seems some other people than Domenico (who asked, and got an answer,
this question earlier) would be interested in this... (also, though
the e-mail isn't 100% clear on that subject, the instructions are for
using avr-gcc+binutils as is, i.e., w/o the patch to support $ in
identifiers).

David Gay

---------- Forwarded message ----------
From: David Gay <address@hidden>
Date: Oct 9, 2007 8:29 AM
Subject: Re: [Tinyos-help] TinyOs avr-gcc-4
To: Domenico Arenga <address@hidden>
Cc: address@hidden


On 10/9/07, Domenico Arenga <address@hidden> wrote:
> I'm a student of the universita one of Pisa, Italy. I would want to know if
> it is possible to use avr-GCC 4 on tinyOs. Excuse the disturbance, and
> thanks thousands.

You need nesC 1.2.9. I think there's no rpm at this point, so you'll
have to install it from source, available at
http://sourceforge.net/project/showfiles.php?group_id=56288
Read the INSTALL directions once you've extracted files from the tarball.

You will also have to make the following changes to the tinyos tree
(changes to the avr make rules):

Index: mica2.target
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/support/make/mica2.target,v
retrieving revision 1.4
diff -r1.4 mica2.target
7c7,8
< PFLAGS += -finline-limit=100000
---
> PFLAGS += --param max-inline-insns-single=100000
> #PFLAGS += -finline-limit=100000
Index: mica2dot.target
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/support/make/mica2dot.target,v
retrieving revision 1.4
diff -r1.4 mica2dot.target
6c6,7
< PFLAGS += -finline-limit=100000
---
> PFLAGS += --param max-inline-insns-single=100000
> #PFLAGS += -finline-limit=100000
Index: avr/avr.rules
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/support/make/avr/avr.rules,v
retrieving revision 1.6
diff -r1.6 avr.rules
33c33
< AMADDR = ActiveMessageAddressC\$$addr
---
> AMADDR = ActiveMessageAddressC__addr
42c42
< PFLAGS += -target=$(PLATFORM) -fnesc-cfile=$(BUILDDIR)/app.c
-board=$(SENSORBOARD)
---
> PFLAGS += -target=$(PLATFORM) -fnesc-cfile=$(BUILDDIR)/app.c 
> -board=$(SENSORBOARD) -fnesc-separator=__




reply via email to

[Prev in Thread] Current Thread [Next in Thread]