ocean
Programming language that compiles into a x86 ELF executable. (by riicchhaarrd)
shecc
A self-hosting and educational C optimizing compiler (by sysprog21)
ocean | shecc | |
---|---|---|
9 | 6 | |
170 | 1,194 | |
- | 1.4% | |
0.0 | 8.0 | |
over 2 years ago | 20 days ago | |
C | C | |
BSD 3-clause "New" or "Revised" License | BSD 2-clause "Simplified" License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
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.
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.
ocean
Posts with mentions or reviews of ocean.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-08-03.
- A work-in-progress C compiler from scratch
- Show HN: A work-in-progress C compiler from scratch
-
A work in progress C compiler from scratch
Can't edit my original reply anymore, but fair point, I've changed the keyword 'function' in the AST to a function return type instead. There's no error handling done yet to check whether the variable receiving the function return data matches the function return type, but it's on my todo list.
https://github.com/riicchhaarrd/ocean/commit/0618e0810c8d437...
Then again in C it would work aswell if you type casted the types.
const char *f()
-
Hacker News top posts: Aug 3, 2021
Show HN: A work in progress C compiler from scratch\ (0 comments)
shecc
Posts with mentions or reviews of shecc.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2024-01-07.
-
A self-hosting and educational C optimizing compiler
Yes, consider the case of shecc. It requires just a handful of C code lines to interpret directives set in the C preprocessor. Unlike relying on existing tools like cpp, as, or ld, shecc stands alone as a minimalist cross-compiler. This design could be particularly beneficial for students delving into the study of compiler construction. See https://github.com/sysprog21/shecc/blob/master/src/lexer.c#L...
-
Compiler Class
I'm looking at this one for a CPU design I've been working on. :)
https://github.com/jserv/shecc
- Shecc: Self-hosting and educational C compiler
- shecc: self-hosting and educational C compiler
- shecc: Self-hosting and educational C compiler
What are some alternatives?
When comparing ocean and shecc you can also consider the following projects:
ravi-compiler - Parser and compiler for Ravi and Lua
spu32 - Small Processing Unit 32: A compact RV32I CPU written in Verilog
imp - Imp is a statically typed and compiled scripting language with the goal of increasing programmer confidence.
chipyard - An Agile RISC-V SoC Design Framework with in-order cores, out-of-order cores, accelerators, and more
flex - The Fast Lexical Analyzer - scanner generator for lexing in C and C++
dji-firmware-tools - Tools for handling firmwares of DJI products, with focus on quadcopters.