[Tinyos-help] Question on preprocessing in NesC
kwright at EECS.Berkeley.EDU
kwright at EECS.Berkeley.EDU
Thu Jan 29 13:37:40 PST 2004
One more thing -- Cory pointed out that ncc is actually generated from ncc.in which is in source form at nesc/tools/ncc.in.
-kw
----- Original Message -----
From: kwright at eecs.berkeley.edu
Date: Thursday, January 29, 2004 2:30 pm
Subject: Re: [Tinyos-help] Question on preprocessing in NesC
>
> See where I said 'in general' below? That's because I was
> hedging... but someone asked (actually I got teased for not giving
> a good answer) so I looked more for who includes tos.h. And here
> it is:
>
> tos.h is included by the perl script ncc. It adds an option onto
> the command line before invoking the compiler. Check out ncc
> where is does this:
>
> unshift @new_args, "-fnesc-include=tos";
>
> Then look in nesc-main.c for 'nesc-include' and you'll see where
> nescc includes it.
>
> -kw
>
> ----- Original Message -----
> From: kwright at eecs.berkeley.edu
> Date: Thursday, January 29, 2004 1:15 pm
> Subject: Re: [Tinyos-help] Question on preprocessing in NesC
>
> >
> > In general, nesc includes work just like regular C includes. In
> > your nc file, you state what components your application is
> > comprised of. For example, tos.h includes inttypes.h in the
> > standard c style.
> >
> > As for environments, I'm not sure. I'll point you to the source
> > for the definitive answer -- it's on sourceforge, the project
> name
> > is nescc, and the CVS module is nesc. I imagine that you already
> > have a copy.
> >
> > -kw
> >
> > ----- Original Message -----
> > From: Kevin Chang <kchang at cs.ucla.edu>
> > Date: Wednesday, January 28, 2004 5:01 pm
> > Subject: [Tinyos-help] Question on preprocessing in NesC
> >
> > > To Whom It May Concern:
> > >
> > > We're in Professor Palsberg's compiler research group at UCLA.
>
> > We are
> > > trying to write a compiler for NesC in Java. One of the
> problems
> > > we have is
> > > figuring what files to include from the nesC libraries.
> > >
> > > For example from inspecting the app.c for Blink we found that the
> > > preprocessor includes /usr/local/avr/include/inttypes.h; How
> > does the
> > > current NesC compiler know to include this file. The other
> > > question is which
> > > environments are set when the compiler is invoked (for example
> > #ifdef> NESC...) that the preprocessor depends on.
> > >
> > > Thanks,
> > >
> > > Kevin/Vids
> > >
> > > _______________________________________________
> > > Tinyos-help mailing list
> > > Tinyos-help at Millennium.Berkeley.EDU
> > > http://mail.Millennium.Berkeley.EDU/mailman/listinfo/tinyos-help
> > >
> >
> > _______________________________________________
> > Tinyos-help mailing list
> > Tinyos-help at Millennium.Berkeley.EDU
> > http://mail.Millennium.Berkeley.EDU/mailman/listinfo/tinyos-help
> >
>
> _______________________________________________
> Tinyos-help mailing list
> Tinyos-help at Millennium.Berkeley.EDU
> http://mail.Millennium.Berkeley.EDU/mailman/listinfo/tinyos-help
>
More information about the Tinyos-help
mailing list