https://github.com/EarlGray/c4
x86 JIT compiler in 86 lines
https://github.com/EarlGray/c4
i386 jit-compiler tiny
Last synced: 9 months ago
JSON representation
x86 JIT compiler in 86 lines
- Host: GitHub
- URL: https://github.com/EarlGray/c4
- Owner: EarlGray
- License: gpl-2.0
- Fork: true (rswier/c4)
- Created: 2014-11-13T20:48:54.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-07-26T19:02:15.000Z (over 10 years ago)
- Last Synced: 2025-04-26T04:22:42.491Z (9 months ago)
- Topics: i386, jit-compiler, tiny
- Language: C
- Homepage:
- Size: 307 KB
- Stars: 955
- Watchers: 44
- Forks: 63
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
c4 - C in four functions
========================
An exercise in minimalism.
Try the following:
gcc -o c4 c4.c (you may need the -m32 option on 64bit machines)
./c4 hello.c
./c4 -s hello.c
./c4 c4.c hello.c
./c4 c4.c c4.c hello.c
c4x86 - JIT compiler for x86 in 86 lines
========================================
An exercise in bit-twiddling masochism.
x86 only, not self-hosted!
gcc -m32 c4x86.c -o c4x86
./c4x86 hello.c
./c4x86 c4.c hello.c