libriscv
vemips
libriscv | vemips | |
---|---|---|
16 | 17 | |
409 | 6 | |
- | - | |
9.6 | 5.3 | |
7 days ago | 9 months ago | |
C++ | C++ | |
BSD 3-clause "New" or "Revised" License | GNU General Public License v3.0 only |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
libriscv
-
Ask HN: Looking for a project to volunteer on? (November 2023)
Seeking: https://github.com/fwsGonzo/libriscv
This is a C++ RISC-V emulator that focuses on isolating a single process, aka userspace emulation. I am currently working mostly on binary translation, and recently I have made a push to move it from experimental state to fully supported. Another experimental feature is embedding libtcc and using that for binary translation. It is fairly fast to compile, and gives decent speedups. The challenge is what to do now that (perhaps) some low hanging fruits have been picked.
-
Writing a Tiny RISC-V Emulator [video]
I definitely recommend people to consider the base ISA of RISC-V if they want to try to implement a CPU or even full-system emulation. I understand that implementing a GameBoy emulator might be more attractive because you are working towards something graphical, but you can definitely get something similar with RISC-V, eg. Doom (SDL example: https://github.com/fwsGonzo/libriscv/tree/master/examples/do...)
-
MSVC-compatible CMake project
This is the example project: https://github.com/fwsGonzo/libriscv/tree/master/examples/msvc
-
MSVC troubles
Pretty much two days of work: https://github.com/fwsGonzo/libriscv/commits/master
-
Hacker News top posts: Nov 21, 2022
Show HN: Libriscv – RISC-V userspace emulator library\ (7 comments)
- GitHub - fwsGonzo/libriscv: C++17 RISC-V RV32/64/128 userspace emulator library
- Show HN: C++17 RISC-V RV32/64/128 userspace emulator library
-
C++17 RISC-V RV32/64/128 userspace emulator library
There is a doom emulation demo here now: https://github.com/fwsGonzo/libriscv/tree/master/emulator/do...
You will need to add the shareware doom1.wad yourself. :)
vemips
- Building a baseline JIT for Lua automatically
-
On ELF, Part 1
Also, if anyone wants to see a hastily-written ELF loader that I haven't cared enough about to go back and clean up in C++, I have one here.
-
Weird things I learned while writing an x86 emulator
I suggest MIPS.
-
RTS programming game where you write real C++ code to control your player.
I actually wrote VeMIPS for this specific purpose.
-
NASA Selects SiFive and Makes RISC-V the Go-to Ecosystem for Future Space Missions - SiFive
Unfortunately, I don't remember specifically. It was about when I wrote VeMIPS and was also working on figuring out an alternative ISA for a 3d printer board, and I'd noticed that a specific conversion instruction was missing on it. Maybe it was moving a double-precision register to the general purpose registers on 32-bit? Not sure anymore. I can look over IRC logs maybe to find out.
-
rvscript: Fast RISC-V-based scripting backend for game engines
This is the exact purpose that I wrote VeMIPS for.
-
libriscv: Multiprocessing for Compute Functions
Looks similar to vemips. Same rationale as well (embedding within a game or simulation).
-
Chip8 Emulator for Android written in C++ using NDK and SDL
Probably wouldn't be too hard to add Chip8 as a backend to VeMIPS, though VeMIPS presently doesn't run on Android (only Win64 and in Javascript using asm.js).
-
Zelda 64 has been fully decompiled, potentially opening the door for mods and ports
I personally dislike disassembling MIPS, and I wrote VeMIPS!
-
1Hz Minecraft Redstone Computer
However, I did end up releasing VeMIPS, which is an embeddable MIPS32r6 emulator/VM which is heavily configurable, has a dynamic recompiler, and has instruction-level execution granularity, meaning that you can tell it "execute 10 instructions and return". This lets you implement things like cost per instruction, virtual CPUs with different performance characteristics, and so forth.
What are some alternatives?
chrgfx - Converts to and from tile based graphics from retro video game hardware
bf_jit - Over-engineered JIT compiler for bf
stduuid - A C++17 cross-platform implementation for UUIDs
Learning-Resources - This repository serves as a list of resources that I have personally found useful for learning about certain concepts
lager - C++ library for value-oriented design using the unidirectional data-flow architecture — Redux for C++
mcresc - An interactive debugger for Mornington Crescent, written in ES2015
seer - Seer - a gui frontend to gdb
MinecraftHDL - A Verilog synthesis flow for Minecraft redstone circuits
nomenus-rex - A CLI utility for the file mass-renaming
rvscript - Fast RISC-V-based scripting backend for game engines
GPU-Raytracer - GPU Raytracer from scratch in C++/CUDA
sm64ex - Fork of https://github.com/sm64-port/sm64-port with additional features.