inline will inflate code size. Look at the MSP430F1611 mote
its Code/Data Rate = FLASH/RAM Rate =  48KB / 10KB = 4.8

The FALSH/RAM Rate of tinyos applications:
Blink                      2606B/40B           = 65.15
SurgeTelos           17140B/670B       = 25.58
SimpleCmdTelos  11516B/359          = 32.08
TOSBase             11066B/1848B     = 5.99
...

The FLASH/RAM Rates of most applications are much higher than real motes.
The aggressive inline optimization may not good at using of resources in balance.
Or MCU makers may need to design a new one.

Chang

----- Original Message ----- From: "Cory Sharp" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[email protected]>
Sent: Friday, March 31, 2006 9:20 PM
Subject: Re: [Tinyos-help] Can we specify an interface function as inline?


Hi Shane,

nesC aggressively inlines over the whole program, and all functions
are implicitly marked as inline.  Only the biggest function remain as
functions.  In fact, it's actually very difficult to tell nesC *not*
to inline a function in those rare cases that you may think you don't
want inlining.

Cory

On 3/31/06, Shane B. Eisenman <[EMAIL PROTECTED]> wrote:
Aside from defining the external interfaces of a component, nesC
*interfaces* provide a nice way to logically group related functions
within a module even when it would suffice to implement a local function.
However, some such functions might be very small, e.g., just act on a few
variables and return, and might normally be defined as *inline*. Is there
a way to define an interface function as inline? Or perhaps ncc/gcc is
smart enough to optimize on it's own?

-shane
------------------------------------
http://www.comet.columbia.edu/~shane

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


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

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

Reply via email to