Skip to content

Commit 31e0fec

Browse files
authored
Merge pull request #1627 from espruino/ESP8266_cflags
add CFLAGs to shrink build size for ESP8266 (fix #1622)
2 parents 40191f9 + f38608a commit 31e0fec

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

ChangeLog

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
nRF52: Fix setScanResponse regression from 2v00
2323
nRF5x: Execute SWI1_IRQHandler when radio turns off instead of on+off. More efficient, fixed multiple advertising.
2424
Smartibot build added
25+
ESP8266: add CFLAGs to shrink build size (fix #1622)
2526
ESP32: update EspruinoBuildTools to esp-idf V3.1.3
2627
nRF52: Add FAT Filesystem support to MDBT42Q module
2728
Now save file modification time with FAT

make/family/ESP8266.make

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,9 @@ CFLAGS+= -fno-builtin \
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 \
6666
-Wl,EL -Wl,--gc-sections -nostdlib -mlongcalls -mtext-section-literals \
67-
-fno-guess-branch-probability -freorder-blocks-and-partition -fno-cse-follow-jumps
67+
-fno-guess-branch-probability -freorder-blocks-and-partition -fno-cse-follow-jumps \
68+
-fno-tree-fre -fno-ipa-sra -fno-signed-zeros -fno-trapping-math -fassociative-math \
69+
-fno-caller-saves -fno-move-loop-invariants -fno-tree-tail-merge -fno-tree-copy-prop
6870

6971
# only use mfore-l32 if 4MB board for now
7072
ifdef FLASH_4MB

0 commit comments

Comments
 (0)