GDCC
GDCC copied to clipboard
nolongjmp attribute
Similar to C++'s noexcept
, it would be useful to be able to mark functions are not generating/propagating long jumps so that callers can omit the post-call check. There should also be a way to set this in bulk. Possibly a pragma and/or option.
Just curious, is there any such attribute offered by other C compilers?
Not as far as I am aware, but there is not the same kind of passive overhead for long jump propagation when targeting normal hardware.