Replace -Os with -O2
-Os seems to optimize away the UART code. I'm not sure why, as all the pointers are volatile.
This commit is contained in:
parent
d73b443ecc
commit
3806106b1c
1 changed files with 1 additions and 1 deletions
2
Makefile
2
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
|
||||
|
|
|
|||
Loading…
Reference in a new issue