Glavo

Glavo / GraalRISCV

Public

A pure Java implementation of a 64-bit user-space RISC-V emulator.

10
0
100% credibility
Found Apr 29, 2026 at 10 stars -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
Java
AI Summary

GraalRISCV is a Java program that emulates a 64-bit RISC-V processor to run compatible ELF executables on standard Java machines.

How It Works

1
πŸ” Discover GraalRISCV

You stumble upon GraalRISCV, a handy tool that lets you run special RISC-V programs on your everyday computer using just Java.

2
πŸ’» Prepare your computer

You make sure the newest Java is installed, so everything feels smooth and ready to go.

3
πŸ“₯ Get the tool set up

You follow easy steps to prepare the emulator, including building simple example programs that come with it.

4
πŸš€ Launch a RISC-V program

You pick a ready-made program like CoreMark or Hello World and start it with one quick action, watching it come alive.

5
βš™οΈ Tweak for your needs

You adjust settings like memory size or file access if needed, making it fit perfectly for bigger programs.

6
πŸ” Test more examples

You try file operations, threads, or other checks, seeing how well it handles real tasks.

βœ… RISC-V runs flawlessly

Your programs execute just like on real RISC-V hardware, giving you reliable results and a sense of accomplishment.

Sign up to see the full architecture

5 more

Sign Up Free

Star Growth

See how this repo grew from 10 to 10 stars Sign Up Free
Repurpose This Repo

Repurpose is a Pro feature

Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.

Unlock Repurpose
AI-Generated Review

What is GraalRISCV?

GraalRISCV is a pure Java 64-bit RISC-V emulator that runs user-mode ELF executables on any JVM, no hardware required. It emulates the full RVA20U64 profile (RV64GC) and handles Linux syscalls for static musl libc programs like CoreMark, letting you test RISC-V binaries via a simple CLI: `java -jar GraalRISCV.jar program.elf`. Built on GraalVM's Truffle, it delivers fast, JIT-optimized execution for benchmarks and examples.

Why is it gaining traction?

Unlike QEMU or Spike, it's a pure Java project with zero native dependencies, running anywhere Java does while supporting sandboxed file I/O via `--host-root` and deterministic clocks for reproducible tests. Developers dig the Gradle integration for building Zig-compiled examples and tracing options like `--trace` or `--debug-trace-compilation`. Early adopters praise its speed on hot loops without sacrificing portability.

Who should use this?

RISC-V toolchain devs validating static ELF binaries on CI without cross-compiling hosts. Embedded engineers simulating 64-bit Linux user-space apps like pthread joins or epoll before hardware spin-up. Java polyglots prototyping RISC-V code in pure java projects, skipping heavyweight emulators.

Verdict

Grab it for quick RISC-V experiments on JVMβ€”solid CLI and syscall coverage make it usable now, despite 10 stars and 1.0% credibility signaling early-stage polish. Under active development; pair with its Zig examples for real wins, but expect gaps in full glibc support.

(198 words)

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.