[Tinyos-devel] how to prevent inlining?

Vlado Handziski vlado.handziski at gmail.com
Thu Sep 8 14:43:18 PDT 2005


Sorry, I did not realize that you want to disable inlining for a
particular function only. Disregard my comment.

Vlado

On 9/8/05, Vlado Handziski <vlado.handziski at gmail.com> wrote:
> Did you try with -fno-inline in gcc?
> 
> Vlado
> 
> On 9/8/05, Joe Polastre <joe at polastre.com> wrote:
> > Hey compiler gurus,
> >
> >   I would like to instruct the compiler to NOT inline a function due
> > to space limitations; in other words, to fit on devices with very
> > limited flash where performance is not an issue.
> >
> >   nesC assigns the 'inline' keyword to everything, so I figure this is
> > probably not possible without editing app.c.  With gcc, I can set the
> > -finline-limit option to a low value to prevent inlining on large
> > functions, but it seems to have little effect if the 'inline' keyword
> > is placed in front of a function.
> >
> >   Do I now need a keyword, 'noinline' that forces nesC to not inline
> > the function and allows me to save flash storage?
> >
> >   Ideas?
> >
> > -Joe
> >
> > _______________________________________________
> > Tinyos-devel mailing list
> > Tinyos-devel at Millennium.Berkeley.EDU
> > https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-devel
> >
> >
> >
>



More information about the Tinyos-devel mailing list