panic_handler/small_panic is significantly smaller than the current default panic_handler/debug_panic since it doesn't bother formatting a panic message, instead using the low-level-debugger and exiting.
However, it's not actually used anywhere (maybe downstream?)!
This PR uses small_panic in release mode and debug_panic in debug mode. There is a pretty substantial drop in code size for most examples.
panic_handler/small_panic
is significantly smaller than the current defaultpanic_handler/debug_panic
since it doesn't bother formatting a panic message, instead using the low-level-debugger and exiting.However, it's not actually used anywhere (maybe downstream?)!
This PR uses
small_panic
in release mode anddebug_panic
in debug mode. There is a pretty substantial drop in code size for most examples.