bare-metal: Panics can bloat binary. No handling at all possible?

If you want to optimize for smallest size, don't forget to enable the following options in Cargo.toml, which may help a little:

[profile.release]
opt-level = 'z'  # Optimize for size.
lto = true       # Enable Link Time Optimization
2 Likes