C4 Alternatives
Similar projects and alternatives to c4
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
c4 reviews and mentions
- AoikC4x86Study: Line-by-line comments to c4.c and c4x86.c files
-
A CPU Is a Compiler
This part is not terribly difficult, though,—Forth implementations have long explored[1] the road from emiting a list of VM instructions (“token threading”) to emitting a list VM instruction implementation entry points (both “indirect” and “direct threading”, arguably) to emitting a stream of call instructions targeting said entry points (“subroutine threading”) to copying the implementation bodies there (“inline threading”).
With sufficient dedication, you can even obtain the machine code to inline by cutting it out of code compiled from a high-level implementation language, in the name of portability. Gforth does this[2] in the land of Forth, but the more well-known implementation is perhaps the dyngen code generator[3] used in Qemu before the switch to TCG in version 0.10.
Generating machine code isn’t difficult, and neither is modifying a (low-level) bytecode generator to do it[4]. Generaring good machine code is difficult.
[1] http://www.bradrodriguez.com/papers/moving1.htm
[2] https://www.complang.tuwien.ac.at/forth/gforth/Docs-html/Dyn...
[3] https://gitlab.com/qemu-project/qemu/-/blob/v0.9.1/qemu-tech..., rendered as https://web.archive.org/web/20081120011949if_/http://bellard...
[4] https://github.com/EarlGray/c4/blob/master/JIT.md
Stats
EarlGray/c4 is an open source project licensed under GNU General Public License v3.0 only which is an OSI approved license.
The primary programming language of c4 is C.
Popular Comparisons
Sponsored