From 3806106b1cd55e0ebf071dc41eee727e96111845 Mon Sep 17 00:00:00 2001 From: Graham Edgecombe Date: Fri, 29 Dec 2017 17:18:36 +0000 Subject: [PATCH] Replace -Os with -O2 -Os seems to optimize away the UART code. I'm not sure why, as all the pointers are volatile. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 871a04e..a1ec0cb 100644 --- a/Makefile +++ b/Makefile @@ -23,7 +23,7 @@ ASFLAGS = -march=rv32i -mabi=ilp32 LD = $(TARGET)-gcc LDFLAGS = -march=rv32i -mabi=ilp32 -Wl,-Tprogmem.lds -ffreestanding -nostartfiles CC = $(TARGET)-gcc -CFLAGS = -march=rv32i -mabi=ilp32 -Wall -Wextra -pedantic -DFREQ=$(FREQ_PLL)000000 -Os +CFLAGS = -march=rv32i -mabi=ilp32 -Wall -Wextra -pedantic -DFREQ=$(FREQ_PLL)000000 -O2 OBJCOPY = $(TARGET)-objcopy .PHONY: all clean syntax time stat flash