mirror of
https://github.com/Noratrieb/rustv32i.git
synced 2026-01-14 13:25:01 +01:00
start c
This commit is contained in:
parent
9ad5785106
commit
dd2e4001fd
5 changed files with 130 additions and 27 deletions
|
|
@ -1,7 +1,7 @@
|
|||
CC = clang -Wall -Wpedantic -target riscv32-unknown-linux-gnu -fuse-ld=lld -march=rv32i
|
||||
CC_STATIC = $(CC) -static -nostdlib -nodefaultlibs
|
||||
|
||||
RUSTC = rustc --target riscv32im-unknown-none-elf
|
||||
RUSTC = rustc --target riscv32imac-unknown-none-elf
|
||||
|
||||
all: init init1
|
||||
|
||||
|
|
|
|||
|
|
@ -93,9 +93,14 @@ fn input() -> u64 {
|
|||
}
|
||||
}
|
||||
|
||||
fn x(a: i32) {}
|
||||
|
||||
|
||||
#[no_mangle]
|
||||
fn _start() -> ! {
|
||||
x(0);
|
||||
x(0);
|
||||
exit(0);
|
||||
let random_number = 45;
|
||||
|
||||
let num = core::sync::atomic::AtomicI32::new(0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue