[Tinyos-help] [Tinyos-devel] what version of Gcc should I be using? Possible bug?
Janos Sallai
sallai at isis.vanderbilt.edu
Tue May 20 08:02:04 PDT 2008
Eric,
I can't help you, but I suspect that the gcc you're using to compile the
MCU application is not version 4.1.2. To get ncc spit out the correct
gcc version you need to type "ncc --version -target=telosb" (replacing
telosb with whatever mote you're using).
Also, in the future, please post such questions to tinyos-help instead
of tinyos-devel.
Janos
From: tinyos-devel-bounces at millennium.berkeley.edu
[mailto:tinyos-devel-bounces at millennium.berkeley.edu] On Behalf Of Eric
Decker
Sent: Tuesday, May 20, 2008 2:38 AM
To: tinyos-devel at millennium.berkeley.edu
Subject: [Tinyos-devel] what version of Gcc should I be using? Possible
bug?
I've been chasing a problem where the following code doesn't do the
right thing.
bool isSetSCCI() {
return (TACCTL2 & SCCI);
}
SCCI has the value 0x0400 (bit 10 of TACCTLx). I would expect this to
return 0x0400 if
SCCI is set and 0 otherwise. The code generated both with and without
optimization is
given below. It basically does nothing. Am I missing something? (As I
get older my
brain definitely misses things....)
(gdb) x/3i 460c
0x460c <GPSByteCollectP$isSetSCCI>: mov &0x0166,r15 ;src
addr 0x0166
0x4610 <GPSByteCollectP$isSetSCCI+4>: clr r15 ;
0x4612 <GPSByteCollectP$isSetSCCI+6>: ret
Here is the code I'm running. I'm a bit dubious of gcc 4.1.2. What
version should I be
running?
cire-laptop (47): ncc --version
ncc: 1.2.4
nescc: 1.2.9
gcc: gcc (GCC) 4.1.2 (Ubuntu 4.1.2-0ubuntu4)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is
NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.
--
Eric B. Decker
Senior (over 50 :-) Researcher
Autonomous Systems Lab
Jack Baskin School of Engineering
UCSC
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20080520/dd19e1bd/attachment.htm
More information about the Tinyos-help
mailing list