You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
521 B

CFLAGS += -save-temps
CFLAGS += -std=gnu99 -Wall # implements C99, for <util/atomic.h>
# this removes dead code and does global linker optimization
#CFLAGS += -ffunction-sections -Wl,--gc-sections -Wl,--relax
CFLAGS += -Wall -Os -I. -mmcu=atmega88 -lm -ffunction-sections -fdata-sections -Wl,--relax -ffreestanding
# further optimization:
#CFLAGS += --param inline-call-cost=2
CFLAGS += -fno-move-loop-invariants # suggestions from from v-usb
CFLAGS += -fno-tree-scev-cprop
CFLAGS += -fno-inline-small-functions