Download ST200 Micro Toolset User Manual

Transcript
PRELIMINARY DATA
68
Inlining
void main()
{
// g and h are not marked for inlining
printf("result is %d %d\n", g(0), h(0));
}
Example 5
This example illustrates the use of the noinline attribute and shows how the
attribute has precedence over #pragma.
#pragma inline_file(f3)
int ig = 0;
void __attribute__ ((noinline)) f3(int
int main()
{
f3(1);
// f3 is not marked for
#pragma inline_next(f3)
f3(2);
// f3 is not marked for
#pragma defaultinline (f3)
f3(3);
// f3 is not marked for
printf("result is %d\n", ig);
}
i) { ig += i ; }
inlining
inlining
inlining
STMicroelectronics
ST200 Micro Toolset User Manual
ADCS 7508723H