[Tinyos-devel] how to prevent inlining?
joe at polastre.com
Mon Sep 12 12:42:13 PDT 2005
__attribute__ ((noinline)) doesn't have any affect on my function that
is being inlined.
I'll take a look at John's suggestions.
On 9/8/05, Adler, Robert P <robert.p.adler at intel.com> wrote:
> We've sucessfully (or at least as best as we can tell) used
> __attribute__ ((noinline)) to solve this problem.
> Hope this helps...
> -----Original Message-----
> From: tinyos-devel-bounces at Millennium.Berkeley.EDU
> [mailto:tinyos-devel-bounces at Millennium.Berkeley.EDU] On Behalf Of Joe
> Sent: Thursday, September 08, 2005 1:15 PM
> To: nescc-devel at lists.sourceforge.net; TinyOS-Devel list
> Subject: [Tinyos-devel] how to prevent inlining?
> 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?
> Tinyos-devel mailing list
> Tinyos-devel at Millennium.Berkeley.EDU
More information about the Tinyos-devel