Skip to content

Commit 28bebad

Browse files
Add size optimization flags to makefile
1 parent dca786f commit 28bebad

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
13+
CFLAGS = -W -Wall -g -O2 -Wpointer-arith -Wl,-EL -nostdlib -mlongcalls -mno-text-section-literals -ffunction-sections -fdata-sections -Werror -free -fipa-pta
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)