I ran into the same problem before. This is a bug in GCC, which optimizes
the code away.
Try putting something inside, which cannot be optimized away, like
inp(SREG)
Then everything will be fine.
Miklos
> Date: Mon, 10 Mar 2003 15:42:18 +0100
> From: Martin Leopold <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: [Tinyos-users] Interrupt handler scraped by tool chain
>
> Hi All.
> I noticed a very peculiar behavior of my tool chain: an interrupt handler
> mysteriously disappears between my .nc file and the app.c file!
> Specifically it is in the "SysTimeC.nc":
>
> TOSH_INTERRUPT(SIG_OVERFLOW1) { __attribute((spontaneous)){
> high16=++;
> }
>
_______________________________________________
Tinyos-users mailing list
[EMAIL PROTECTED]
http://mail.Millennium.Berkeley.EDU/mailman/listinfo/tinyos-users