Skip to content

Commit 4cf6579

Browse files
committed
remove general changes; not consistent across builds
1 parent c977214 commit 4cf6579

File tree

4 files changed

+6
-14
lines changed

4 files changed

+6
-14
lines changed

ports/atmel-samd/Makefile

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -150,13 +150,7 @@ else
150150
CFLAGS += -flto -flto-partition=none
151151

152152
ifeq ($(CIRCUITPY_FULL_BUILD),0)
153-
# Increasing max-inline-insns-auto from 20 to 1000 gains about 300 bytes on a small build.
154-
CFLAGS += --param inline-unit-growth=15 --param max-inline-insns-auto=1000
155-
# These optimizations are normally -O3 only. They improve the way register
156-
# allocation is done, but, to quote the gcc doc, 'can, however, make debugging impossible,
157-
# since variables will no longer stay in a “home register”.'
158-
# On a small build they can gain about 200 bytes.
159-
CFLAGS += -fweb -frename-registers
153+
CFLAGS += --param inline-unit-growth=15 --param max-inline-insns-auto=20
160154
endif
161155

162156
ifdef CFLAGS_BOARD

ports/atmel-samd/boards/meowmeow/mpconfigboard.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ CIRCUITPY_COUNTIO = 0
1414
CIRCUITPY_RTC = 0
1515

1616
SUPEROPT_GC = 0
17+
SUPEROPT_VM = 0

ports/atmel-samd/boards/pewpew_m4/mpconfigboard.mk

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ CIRCUITPY_ROTARYIO = 0
2525
CIRCUITPY_RTC = 0
2626
CIRCUITPY_SAMD = 0
2727
CIRCUITPY_TOUCHIO = 0
28+
CIRCUIPTY_USB_CDC = 0
2829
CIRCUITPY_USB_HID = 0
2930
CIRCUITPY_USB_MIDI = 0
3031
CIRCUITPY_VECTORIO = 0
@@ -40,12 +41,5 @@ CIRCUITPY_STAGE = 1
4041
FROZEN_MPY_DIRS += $(TOP)/frozen/circuitpython-stage/pewpew_m4
4142
CIRCUITPY_DISPLAY_FONT = $(TOP)/ports/atmel-samd/boards/ugame10/brutalist-6.bdf
4243

43-
# Tweak inlining depending on language.
44-
ifeq ($(TRANSLATION), zh_Latn_pinyin)
45-
RELEASE_NEEDS_CLEAN_BUILD = 1
46-
CFLAGS_INLINE_LIMIT = 45
47-
else
48-
CFLAGS_INLINE_LIMIT = 70
49-
endif
5044
# Override optimization to keep binary small
5145
OPTIMIZATION_FLAGS = -Os

ports/atmel-samd/boards/trinket_m0/mpconfigboard.mk

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,6 @@ CIRCUITPY_FULL_BUILD = 0
1212

1313
SUPEROPT_GC = 0
1414
SUPEROPT_VM = 0
15+
16+
# On this particular board, these save about 180 bytes. On other boards, they may -increase- space used.
17+
CFLAGS_BOARD = -fweb -frename-registers

0 commit comments

Comments
 (0)