selfie
swieros
selfie | swieros | |
---|---|---|
21 | 3 | |
2,349 | 1,038 | |
0.5% | - | |
9.7 | 10.0 | |
2 days ago | over 3 years ago | |
Jupyter Notebook | C | |
BSD 2-clause "Simplified" 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.
selfie
- A tiny hand crafted CPU emulator, C compiler, and Operating System
-
Project Oberon the Design of an Operating System, a Compiler, and a Computer Pdf
this sort of exists at https://github.com/cksystemsteaching/selfie
> Selfie is a self-contained 64-bit, 12KLOC C implementation of: (...) a tiny (...) subset of C called C Star (C) (...) to a tiny (...) subset of RISC-V called RISC-U[;] a[n] (...) emulator (...) that executes RISC-U code[;] (...) a (...) hypervisor (...) that provides RISC-U virtual machines*
so they have an instruction set architecture, a compiler, and an operating system, though it's much simpler than xv6. because the instruction set is a subset of risc-v you can run its code on actual risc-v hardware (or qemu-system-riscv), but presumably you could also design risc-u hardware in verilog that was simpler than a full implementation of rv64i with whatever extensions the hypervisor needs
- Best book on writing an optimizing compiler (inlining, types, abstract interpretation)?
- Selfie: An educational platform for teaching systems engineering
- An educational software system of a tiny self-compiling C compiler, a tiny self-executing RISC-V emulator, and a tiny self-hosting RISC-V hypervisor.
- Selfie: An Educational Platform For Teaching Systems Engineering
swieros
-
A tiny hand crafted CPU emulator, C compiler, and Operating System
There's a very interesting C interpreter/compiler there as well [1]. From the header:
"c is the c compiler. It takes a single source file and creates an executable file or else executes the compiled code immediately. The compiler does not reach full standards compliance, so some programs need minor adjustment.
There is no preprocessor, although the #include keyword is allowed supporting a single level of file inclusion."
[1] https://github.com/rswier/swieros/blob/master/root/bin/c.c
-
Best practice to store context for a C compiler
swierosc
What are some alternatives?
oscam-patched - Open Source Cam Emulator
z88dk - The development kit for over a hundred z80 family machines - c compiler, assembler, linker, libraries.
coollang-2020-fs - Compiler of a small Scala subset
wcc - wo4mei3's c compiler written in ocaml
perseus - A state-driven web development framework for Rust with full support for server-side rendering and static generation.
sncc - Self hosted C compiler at seccamp2018
scamp-cpu - A homebrew 16-bit CPU with a homebrew Unix-like-ish operating system.
weicc - A small C compiler
shecc - A self-hosting and educational C optimizing compiler
riscv32_beluga - c compiler beluga with riscv32 backend
the_ray_tracer_challenge_in_rust - Repository to follow my development of "The Raytracer Challenge" book by Jamis Buck in the language Rust
mcc