A tiny Forth kernel for RV64: Linux and QEMU virt builds, linked from handwritten assembly.
build failing · RV64IMAC: QEMU virt, bare metal, and Linux
First runnable RV64 Forth kernel
Steps
link for Linux
clang --target=riscv64-linux-gnu -march=rv64imac -mabi=lp64 -fno-pic -g -nostdlib -static -fuse-ld=lld -o build/forth-linux src/forth.S src/linux.S
0 ms
clang is not installed on this build host.
link for QEMU virt
clang --target=riscv64-unknown-elf -march=rv64imac_zicsr -mabi=lp64 -mcmodel=medany -g -nostdlib -fuse-ld=lld -T link.ld -o build/forth.elf src/forth.S src/virt.S
0 ms
clang is not installed on this build host.
flat image
llvm-objcopy -O binary build/forth.elf build/forth.bin
0 ms
llvm-objcopy is not installed on this build host.
squares of 1 to 10
./build/forth-linux
linux
2 ms
spawn /Users/charlesturcott/acompiled-data/generated/ebbb0762-e8ee-42c0-8bb0-e246ede7e9a6/.work/harlan/rv-forth/build-1/build/forth-linux ENOENT
Artifacts
build/forth.bin
not produced
build/forth-linux
not produced