Skip to content

Commit b024386

Browse files
Minimize L32R use with new compiler optimization
See earlephilhower/esp-quick-toolchain#36 (comment)
1 parent 9fe3977 commit b024386

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

conf/esp8266.mk

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ BUILD = esp8266
1010
# C compiler, linker, and static library builder.
1111
TOOLCHAIN_PREFIX := xtensa-lx106-elf-
1212
CC := $(TOOLCHAIN_PREFIX)gcc
13-
CFLAGS = -W -Wall -g -O2 -Wpointer-arith -Wl,-EL -nostdlib -mlongcalls -mno-text-section-literals -ffunction-sections -fdata-sections -Werror -free -fipa-pta
13+
CFLAGS = -W -Wall -g -O2 -Wpointer-arith -Wl,-EL -nostdlib -mlongcalls -mno-text-section-literals -ffunction-sections -fdata-sections -Werror -free -fipa-pta -mextra-l32r-costs=5
1414
CFLAGS += -D__ets__ -DICACHE_FLASH -DESP8266 -DBR_SLOW_MUL15=1 -DPGM_READ_UNALIGNED=0
1515
LD := $(TOOLCHAIN_PREFIX)ld
1616
AR := $(TOOLCHAIN_PREFIX)ar

0 commit comments

Comments
 (0)