Skip to content

Instantly share code, notes, and snippets.

View orvitpng's full-sized avatar

Carter Davis orvitpng

  • Austin, Texas
  • 21:38 (UTC -06:00)
View GitHub Profile
@orvitpng
orvitpng / hello.s
Created January 29, 2026 03:50
A tiny "Hello, world!" for RISC-V.
# Build:
# zig cc \
# -target riscv32-freestanding-none \
# -c -o hello.o \
# hello.s
# zig objcopy \
# -O binary \
# hello.o hello.bin
# Run:
# qemu-system-riscv32 \
@orvitpng
orvitpng / context.fish
Created November 1, 2025 18:50
compile project into xml file for llm context
#!/usr/bin/env fish
set target (if set -q argv[1]; echo $argv[1]; else; echo "."; end)
set output output.xml
if not test -d $target
echo "Error: Directory \"$target\" does not exist"
exit 1
end
echo "Compiling project from $target to $output..."