9.39 __attribute__((noinline)) function attribute

This function attribute suppresses the inlining of a function at the call points of the function.


This function attribute is a GNU compiler extension that the ARM compiler supports. It has the __declspec equivalent __declspec(noinline).


int fn(void) __attribute__((noinline));
int fn(void)
    return 42;
Related reference
9.62 __attribute__((noinline)) constant variable attribute
9.85 #pragma inline, #pragma no_inline
9.25 __declspec(noinline)
Non-ConfidentialPDF file icon PDF versionARM DUI0375E
Copyright © 2007, 2008, 2011, 2012, 2014 ARM. All rights reserved.