[Tinyos-help] __attribute__ ((C, spontaneous))
David Gay
dgay42 at gmail.com
Thu Aug 17 07:12:41 PDT 2006
On 8/16/06, Ning Xu <szxuning at gmail.com> wrote:
> Hi David,
>
> I encounter this problem: in my nesc module there is a command that
> will be called from another object file. nesC convert this command as
> static function which gets optimized away before the linking process.
>
> I have tried __attributed__((unused)), it does not help.
>
> I also try __attribute__((spontatenous C)), this time nesC complains
> error, saying spontatenous C must be applied to external function,
> which make sense.
You can use it on functions defined in modules, just not on commands
or events. Simply have a function that just calls the command...
David Gay
More information about the Tinyos-help
mailing list