From cdadf7454342e841fdadd44fb5fe29ed78135af6 Mon Sep 17 00:00:00 2001 From: Selene ToyKeeper Date: Wed, 22 Aug 2018 17:46:28 -0600 Subject: Reduced ROM size back to pre-branch levels (aside from 6 extra bytes to fix interaction between aux LEDs and lockout moon). Fixed typos: lightening, tactial. Replaced new switch/case clauses with if/else clauses, to reduce ROM size. Added -fshort-enums to gcc options to reduce ROM size. --- bin/build-25.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/build-25.sh') diff --git a/bin/build-25.sh b/bin/build-25.sh index 2be8269..a775a0f 100755 --- a/bin/build-25.sh +++ b/bin/build-25.sh @@ -8,7 +8,7 @@ export ATTINY=25 export MCU=attiny$ATTINY export CC=avr-gcc export OBJCOPY=avr-objcopy -export CFLAGS="-Wall -g -Os -mmcu=$MCU -c -std=gnu99 -DATTINY=$ATTINY -I.. -I../.. -I../../.." +export CFLAGS="-Wall -g -Os -mmcu=$MCU -c -std=gnu99 -DATTINY=$ATTINY -I.. -I../.. -I../../.. -fshort-enums" export OFLAGS="-Wall -g -Os -mmcu=$MCU" export LDFLAGS= export OBJCOPYFLAGS='--set-section-flags=.eeprom=alloc,load --change-section-lma .eeprom=0 --no-change-warnings -O ihex' -- cgit v1.2.3