From aebf13971bb2cd9b0e3976a8cab3bac23391dbb6 Mon Sep 17 00:00:00 2001 From: Selene ToyKeeper Date: Fri, 10 Sep 2021 00:35:44 -0600 Subject: added -mrelax to build.sh; saves ~330 bytes on t1634 builds (suggested by solrize) (doesn't seem to reduce size of t85 builds though) --- bin/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/build.sh') diff --git a/bin/build.sh b/bin/build.sh index aa983c8..58896a5 100755 --- a/bin/build.sh +++ b/bin/build.sh @@ -30,7 +30,7 @@ export CC=avr-gcc export OBJCOPY=avr-objcopy export DFPFLAGS="-B $ATTINY_DFP/gcc/dev/$MCU/ -I $ATTINY_DFP/include/" export CFLAGS="-Wall -g -Os -mmcu=$MCU -c -std=gnu99 -fgnu89-inline -fwhole-program -DATTINY=$ATTINY -I.. -I../.. -I../../.. -fshort-enums $DFPFLAGS" -export OFLAGS="-Wall -g -Os -mmcu=$MCU $DFPFLAGS" +export OFLAGS="-Wall -g -Os -mmcu=$MCU -mrelax $DFPFLAGS" export LDFLAGS="-fgnu89-inline" export OBJCOPYFLAGS='--set-section-flags=.eeprom=alloc,load --change-section-lma .eeprom=0 --no-change-warnings -O ihex' export OBJS=$PROGRAM.o -- cgit v1.2.3