diff options
author | 2018-08-25 19:10:36 +0200 | |
---|---|---|
committer | 2018-08-25 19:14:42 +0200 | |
commit | 2557ac432eb3645671c093e3ace8787444180537 (patch) | |
tree | fc3b99de94ce47fd67237f2be34aa4d53e275607 /cortex-m-rt/examples/alignment.rs | |
parent | 8c4a9d27361de5f461e945c76f42f2aabf8af4ef (diff) | |
download | cortex-m-2557ac432eb3645671c093e3ace8787444180537.tar.gz cortex-m-2557ac432eb3645671c093e3ace8787444180537.tar.zst cortex-m-2557ac432eb3645671c093e3ace8787444180537.zip |
reduce the size of default handlers
this commit replaces the two default handler (DefaultDefaultHandler and
DefaultUserHardFault) by a single handler named `EndlessLoop`. This results in
one less symbol being generated.
Also this new handler uses `compiler_fence` to avoid the "infinite loops w/o
side effects are undef values" bug in LLVM. `compiler_fence` is guaranteed to
generate no code so this reduces the size of the handler (when compiler in
release).
Diffstat (limited to 'cortex-m-rt/examples/alignment.rs')
0 files changed, 0 insertions, 0 deletions