15.1.2.16 optimize

Use the optimize attribute to specify different optimization options for various functions within a source file. Arguments can be either numbers or strings. Numbers are assumed to be an optimization level. Strings that begin with O are assumed to be an optimization option. This feature can be used, for example, to have frequently executed functions compiled with more aggressive optimization options that produce faster and larger code, while other functions can be called with less aggressive options.

This optimization setting overrides the file or project optimization setting.

int __attribute__((optimize("-O3"))) pandora (void)
{
 if (maya > axton) return 1;
 return 0;
}