Skip to content

Commit e7fcf05

Browse files
MaBeckergfwilliams
authored andcommitted
add some CFLAGs to shrink binary file size (fix #1499)
1 parent f717cee commit e7fcf05

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

ChangeLog

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
ES8266: add CFLAGs to shrink binaray files (fix #1499)
12
ESP32: update sdk to esp-idf 3.0.1, set Espruino build tools back to master branch
23
Allow changeInterval with large (>32 bit) intervals (fix #1438)
34
changeInterval now changes the interval immediately when it's called inside the interval it is changing (fix #1440)

make/family/ESP8266.make

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ CFLAGS+= -fno-builtin \
6363
-Wno-maybe-uninitialized -Wno-old-style-declaration -Wno-conversion -Wno-unused-variable \
6464
-Wno-unused-parameter -Wno-ignored-qualifiers -Wno-discarded-qualifiers -Wno-float-conversion \
6565
-Wno-parentheses -Wno-type-limits -Wno-unused-function -Wno-unused-value \
66-
-Wl,EL -Wl,--gc-sections -nostdlib -mlongcalls -mtext-section-literals
66+
-Wl,EL -Wl,--gc-sections -nostdlib -mlongcalls -mtext-section-literals \
67+
-fno-guess-branch-probability -freorder-blocks-and-partition -fno-cse-follow-jumps
6768

6869
# only use mfore-l32 if 4MB board for now
6970
ifdef FLASH_4MB

0 commit comments

Comments
 (0)