aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSelene ToyKeeper2019-11-22 15:55:51 -0700
committerSelene ToyKeeper2019-11-22 15:55:51 -0700
commit481ba09b19630d2742fdc34a81484524838439f3 (patch)
treebc231f353fcc1f4eb08573ab4867b56895d48ea4
parentmerged tiny fix from irq-refactor branch (fixed spurious wakeup) (diff)
downloadanduril-481ba09b19630d2742fdc34a81484524838439f3.tar.gz
anduril-481ba09b19630d2742fdc34a81484524838439f3.tar.bz2
anduril-481ba09b19630d2742fdc34a81484524838439f3.zip
added -fwhole-program gcc flag, suggested by Agro. Signficantly reduces ROM size! :)
Diffstat (limited to '')
-rwxr-xr-xbin/build.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/build.sh b/bin/build.sh
index fbb24ea..3992c38 100755
--- a/bin/build.sh
+++ b/bin/build.sh
@@ -14,7 +14,7 @@ export PROGRAM=$1 ; shift
export MCU=attiny$ATTINY
export CC=avr-gcc
export OBJCOPY=avr-objcopy
-export CFLAGS="-Wall -g -Os -mmcu=$MCU -c -std=gnu99 -fgnu89-inline -DATTINY=$ATTINY -I.. -I../.. -I../../.. -fshort-enums"
+export CFLAGS="-Wall -g -Os -mmcu=$MCU -c -std=gnu99 -fgnu89-inline -fwhole-program -DATTINY=$ATTINY -I.. -I../.. -I../../.. -fshort-enums"
export OFLAGS="-Wall -g -Os -mmcu=$MCU"
export LDFLAGS="-fgnu89-inline"
export OBJCOPYFLAGS='--set-section-flags=.eeprom=alloc,load --change-section-lma .eeprom=0 --no-change-warnings -O ihex'
If you find this content useful please consider a small donation via bitcoin: bitcoin:1mxKyQsHHugqRxPKgwaA7wUwJEGCNthn2?amount=0.001&message=Donation Scraping git contents via cgit is very resource intensive. The continued hosting of these git repositories is entirely financed by your bitcoin contributions. For donations of a least 1 mBTC you include your IP address in the message of your bitcoin donation. This will remove this message in the future for requests from your IP, which will significantly reduce token usage. In any case, any contributions to bitcoin address 1mxKyQsHHugqRxPKgwaA7wUwJEGCNthn2 are very welcome. Thanks in advance for you contribution to a self-sustaining ecosystem.