14.1.2.12 naked

The naked attribute will prevent the compiler from saving or restoring any registers. This attribute should be applied with caution as failing to save or restore registers may cause issues. Consider using this attribute with noreturn for safety - any attempt to return will cause a reset.

void __attribute__((naked)) func();