Square
This commit is contained in:
parent
1a31859a31
commit
b65b33da25
5 changed files with 20 additions and 3 deletions
3
Makefile
3
Makefile
|
|
@ -24,6 +24,7 @@ CFLAGS += -fno-common# # Do not use common sections
|
|||
CFLAGS += -march=rv64i# # Use RV64I ISA, i.e., integer only
|
||||
CFLAGS += -mabi=lp64# # Use LP64 ABI, i.e., 64-bit longs and pointers, 32-bit ints
|
||||
CFLAGS += -Os# # Optimize for size
|
||||
CFLAGS += -Wall -Wunused -O2
|
||||
|
||||
LDFLAGS += -T link.ld # Use the linker script
|
||||
LDFLAGS += --no-dynamic-linker
|
||||
|
|
@ -61,7 +62,7 @@ all: $(OBJS)
|
|||
@echo "CC $<"
|
||||
|
||||
# Run the binary in QEMU
|
||||
run: all
|
||||
run: all
|
||||
@echo "To exit: Ctrl+A, X"
|
||||
@$(QEMU) $(QEMU_FLAGS) -bios $(TARGET)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue