Skip to content

Commit

Permalink
progress
Browse files Browse the repository at this point in the history
  • Loading branch information
edg-l committed Sep 3, 2024
1 parent e908396 commit 6f27452
Show file tree
Hide file tree
Showing 8 changed files with 460 additions and 20 deletions.
267 changes: 267 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ version = "0.1.0"
edition = "2021"

[dependencies]
tracing = "0.1.40"
tracing-subscriber = { version = "0.3.18", features = ["env-filter"] }
19 changes: 11 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
add-addi.bin: add-addi.s
riscv64-unknown-elf-gcc -Wl,-Ttext=0x0 -nostdlib -o tests/add-addi tests/add-addi.s
riscv64-unknown-elf-objcopy -O binary tests/add-addi tests/add-addi.bin

clean:
rm -f tests/add-addi
rm -f tests/add-addi.bin
rm -f tests/*.bin


SRCS = $(wildcard tests/*.s)

PROGS = $(patsubst %.s,%.bin,$(SRCS))

all: $(PROGS)

%.bin: %.s
riscv64-unknown-elf-gcc -Wl,-Ttext=0x0 -nostdlib -o $@ $<
riscv64-unknown-elf-objcopy -O binary $@ $@
Loading

0 comments on commit 6f27452

Please sign in to comment.