Commit 6d65a71
committed
Removed printf call in _Error_Handler() to reduce code size
By using the printf function of the library C this inflates
the size of the code. An alternative, will be to implement
a tiny and limited functionality implementation of printf.
Example, build modified Blink.ino with _Error_Handler()
calls for Nucloe F103RB:
With printf: Sketch uses 16368 bytes
Without printf: Sketch uses 10220 bytes
Difference is 6k of flash used which is not negligible.
Nano static library is linked to use this printf call.
Signed-off-by: Frederic.Pillon <frederic.pillon@st.com>1 parent cf1d84a commit 6d65a71
1 file changed
+7
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
16 | 22 | | |
17 | 23 | | |
18 | 24 | | |
| |||
0 commit comments