[Tinyos-devel] ti msp430 cc

Martin Leopold leopold at diku.dk
Sun Nov 16 03:29:28 PST 2008


Hi,
I think most of the issues covering the 8051's project has been
discussed, but I'll add the following.

On Thu, 2008-11-13 at 10:07 -0800, David Gay wrote: 
> Options essentially include:
> 
> ... 
> - using the preprocessor to remap them to something nesC understands,
> then unremapping them as a post-pass (a variation avoids the first
> remap step, and just has you writing something nesC understands and
> mapping that to the extension after nesc1 runs)
> ...

In a sense, this is what mangeAppC.pl does, except outside nescc - which
has proven relatively reliably, but it's still a hack and has it's
limitations.

Pushing the code parsing/generation to nescc would be preferable, but is
not a task that I have the time to take on.

> - anything involving #pragma is likely to be a pain... (not so much
> understanding it, but putting it somewhere rational in the C code
> generated by nesC)

As far as I can tell, #pragma is a necessity for certain compilers - for
example for defining interrupt handlers (e.g. IAR for 8051, CodeWarriors
for hcs08).

-- 
Regards Martin Leopold.



More information about the Tinyos-devel mailing list