To elaborate on David's answer a bit: some nesC components and configurations can be lowered to C more or less straightforwardly using binary component support. The necessary property is a lack of dangling generics, tasks, and parameterized interfaces (and maybe other things I am forgetting). Obviously any complete TinyOS application can be lowered to C, as can many simple components and configurations.
To the original poster: I've been working on a stupid Perl script that automatically generates the binary component glue needed to turn a .nc file into a .o. Drop me a line and I can share it with you. John Regehr On Mon, 7 May 2007, David Gay wrote: > On 5/7/07, Steve McKown <[EMAIL PROTECTED]> wrote: > > On Sunday 06 May 2007 23:39, Ravi konakalla wrote: > > > hi everyone, > > > I want to compile a single .nc file, do you know any compiler for > > > that ?? > > > In one screenshot i have seen one software (similar to notepad) is > > > compiling a single .nc file. If you know any software for compiling > > > single > > > .nc file please let me know. > > > > It sounds like you believe .nc files are like .c files, in that they can > > be > > considered fully independent compilation units. This isn't true. Only > > after > > the nesC compiler parses a combination of .nc files together does a > > compilation unit get created: app.c. > > It's not possible (*) to compile a single nesC source file. But the > original poster may want to look in > /usr/share/ncc/doc/user/binary-components.txt > for the documentation on binary components (it's hard to know if this > will be useful as he hasn't said why he needs to compile a single .nc > file). > > David Gay > *: more precisely: the current nesC compiler cannot, and it's probably > not possible to compile a single .nc file to a regular .o file. > _______________________________________________ > 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
