From aca4b555cffd1b82d7306e58de6277ccfb95f604 Mon Sep 17 00:00:00 2001 From: Edgar Luque Date: Thu, 5 Sep 2024 07:36:08 +0100 Subject: [PATCH] use march --- Makefile | 2 +- tests/fib.bin | Bin 196 -> 120 bytes 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 4a78d2c..8508ed1 100644 --- a/Makefile +++ b/Makefile @@ -12,7 +12,7 @@ test: test_files test_files: $(PROGS) $(C_PROGS) %.bin: %.s - riscv64-unknown-elf-gcc -Wl,-Ttext=0x0 -nostdlib -o $@ $< + riscv64-unknown-elf-gcc -march=rv64g -Wl,-Ttext=0x0 -nostdlib -o $@ $< riscv64-unknown-elf-objcopy -O binary $@ $@ %.s: %.c diff --git a/tests/fib.bin b/tests/fib.bin index 684f65929775611de718b4619673cc7c7f54a934..681a8c761d5c231eeb97e8d1282c5cb3c1e0877d 100755 GIT binary patch literal 120 zcmZ=1WP76YfPq8P^*sXv1C*ZTg${y(eQ_qBjTenLg&|6bL;bUsLSQ2|rQ KqZHS~rUn2oPB@_e literal 196 zcmWe;Wc;seBFLa@(8wUn!pJDhx`5$5!vV(0?5qsJt?UfVKyhXhMh0O@rGf0p>;eqQV&B31dD}73q;TC_UA})@jpRwyW77oz|;fX!vu5>Q?p4UBhW3(AU6R3BValL