c4

x86 JIT compiler in 86 lines (by EarlGray)

C4 Alternatives

Similar projects and alternatives to c4

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better c4 alternative or higher similarity.

c4 reviews and mentions

Posts with mentions or reviews of c4. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-08-26.
  • AoikC4x86Study: Line-by-line comments to c4.c and c4x86.c files
    3 projects | news.ycombinator.com | 26 Aug 2023
  • A CPU Is a Compiler
    2 projects | news.ycombinator.com | 23 Mar 2023
    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

Basic c4 repo stats
2
919
10.0
almost 9 years ago

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.


Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com