diff options
Diffstat (limited to 'read-rom/Makefile')
-rw-r--r-- | read-rom/Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/read-rom/Makefile b/read-rom/Makefile index 0b9e15c..c31d4ec 100644 --- a/read-rom/Makefile +++ b/read-rom/Makefile @@ -9,8 +9,10 @@ AVROBJDUMP ?= avr-objdump CFLAGS += -mmcu=attiny2313 -DF_CPU=20000000UL #CFLAGS += -gdwarf-2 -fverbose-asm -save-temps -CFLAGS += -I. -std=gnu99 -O2 -Wall -Wextra -pedantic +CFLAGS += -I. -std=gnu99 -Os -Wall -Wextra -pedantic CFLAGS += -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums +# r28 .. r31 hold the microsecond counters +CFLAGS += -ffixed-28 -ffixed-29 -ffixed-30 -ffixed-31 CFLAGS += -fwhole-program -flto -mstrict-X AVRFLAGS += -U lfuse:w:0xe4:m -U hfuse:w:0xdf:m -U efuse:w:0xff:m |