mirror of
https://github.com/Noratrieb/rustv32i.git
synced 2026-01-14 21:35:02 +01:00
more compressed instructions
This commit is contained in:
parent
dd2e4001fd
commit
957b6a263a
3 changed files with 265 additions and 55 deletions
|
|
@ -1,12 +1,15 @@
|
|||
CC = clang -Wall -Wpedantic -target riscv32-unknown-linux-gnu -fuse-ld=lld -march=rv32i
|
||||
CC = clang -Wall -Wpedantic -target riscv32-unknown-linux-gnu -fuse-ld=lld -march=rv32imac
|
||||
CC_STATIC = $(CC) -static -nostdlib -nodefaultlibs
|
||||
|
||||
RUSTC = rustc --target riscv32imac-unknown-none-elf
|
||||
|
||||
all: init init1
|
||||
all: init init1 x
|
||||
|
||||
init: init.c
|
||||
$(CC_STATIC) init.c -o init
|
||||
|
||||
init1: init1.rs
|
||||
$(RUSTC) init1.rs
|
||||
|
||||
x: x.s
|
||||
$(CC_STATIC) x.s -o x
|
||||
Loading…
Add table
Add a link
Reference in a new issue