On Nov 9, 2007 7:54 AM, mejda chouaieb <[EMAIL PROTECTED]> wrote:
> Hello All,
>
> can someone tell me where are .ncc files transformed to .c files?
> I mean in which makefile ? and where exactly?

The invocation of ncc you see when you type make is a nesC compiler,
which outputs an executable. It happens to do this by generating a C
file, and passing that file to gcc... In case people want to look at
this intermediate C file, ncc has an option to leave a copy of the C
file in a particular place (the -fnesc-cfile=... option, see the ncc
and nescc man pages).

The TinyOS makefiles invoke ncc with a
-fnesc-cfile=build/<platform>/app.c option, as you can see when you
type make...

So, to summarise the answer: no makefile transforms .nc files into a
.c file. But the ncc compiler does have an option to save the
intermediate C file, which the TinyOS makefiles do use...

David Gay
PS: You can see the basic sequence of commands run by ncc by passing
it a -v option...
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to