mirror of
https://github.com/ringtailsoftware/uvm32.git
synced 2026-06-06 06:53:39 +00:00
Maze works at -O2 with -fpeel-loops
This commit is contained in:
parent
a55300c8c3
commit
8802b4c268
2 changed files with 5 additions and 4 deletions
|
|
@ -1,9 +1,9 @@
|
|||
PREFIX:=riscv64-elf-
|
||||
OPT ?= -Os
|
||||
CFLAGS+=-I${TOPDIR}/common
|
||||
CFLAGS+=-fno-stack-protector -fno-builtin-memcpy -fno-builtin
|
||||
CFLAGS+=${OPT} -fno-stack-protector -fno-builtin-memcpy -fno-builtin
|
||||
CFLAGS+=-static-libgcc -fdata-sections -ffunction-sections
|
||||
CFLAGS+=-g ${OPT} -march=rv32im -mabi=ilp32 -static
|
||||
CFLAGS+=-g -march=rv32im -mabi=ilp32 -static
|
||||
LDFLAGS:= -T ${TOPDIR}/apps/linker.ld -nostdlib -Wl,--gc-sections
|
||||
LIBS:= -lgcc # needed for softfp
|
||||
|
||||
|
|
@ -22,7 +22,7 @@ else
|
|||
endif
|
||||
|
||||
all_common:
|
||||
@${PREFIX}gcc -o ${PROJECT}.elf ${CFLAGS} ${LDFLAGS} ${SRCS} ${LIBS}
|
||||
${PREFIX}gcc -o ${PROJECT}.elf ${CFLAGS} ${LDFLAGS} ${SRCS} ${LIBS}
|
||||
@$(PREFIX)objcopy ${PROJECT}.elf -O binary ${PROJECT}.bin
|
||||
|
||||
disasm_common: all
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue