You copied the Doc URL to your clipboard.

__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).

In GNU mode, if this attribute is applied to a type instead of a function, the result is a warning rather than an error.


int fn(void) __attribute__((noinline));
int fn(void)
    return 42;