Блог*
#prog #rust #article На этот раз — статья про концепцию разномерности типа в Rust. github.com/pretzelhammer/rust-blog/blob/master/posts/sizedness-in-rust.md
#prog #rust #compiler #article
Восхитительная длинная статья от Крендель-молота про написание компилятора brainfuck под x86_64, ARM64, WASM и LLVM IR.
github.com/pretzelhammer/rust-blog/blob/master/posts/too-many-brainfuck-compilers.md
Восхитительная длинная статья от Крендель-молота про написание компилятора brainfuck под x86_64, ARM64, WASM и LLVM IR.
github.com/pretzelhammer/rust-blog/blob/master/posts/too-many-brainfuck-compilers.md
GitHub
rust-blog/posts/too-many-brainfuck-compilers.md at master · pretzelhammer/rust-blog
Educational blog posts for Rust beginners. Contribute to pretzelhammer/rust-blog development by creating an account on GitHub.
Forwarded from Zero Dereference
Stoneknife Forth is a minimal forth translator that can compile itself. This compiler is so simple that it recognizes only one-letter identifiers.
This can be bootstrapped in two steps:
First of all Stoneknife is compiled by itself being interpreted by a slow interpreter written in python.
The second step is compiling with the compiler produced by the previous step. The result is a bootstrapped x86 ELF executable.
https://github.com/kragen/stoneknifeforth
#compiler #lowlevel #system #programming
This can be bootstrapped in two steps:
First of all Stoneknife is compiled by itself being interpreted by a slow interpreter written in python.
The second step is compiling with the compiler produced by the previous step. The result is a bootstrapped x86 ELF executable.
https://github.com/kragen/stoneknifeforth
#compiler #lowlevel #system #programming
GitHub
GitHub - kragen/stoneknifeforth: a tiny self-hosted Forth implementation
a tiny self-hosted Forth implementation. Contribute to kragen/stoneknifeforth development by creating an account on GitHub.
Forwarded from Zero Dereference
I have already written about Rui Ueyama and the family of small C compilers: 8cc and 9cc. I also mentioned chibicc, a project that complements Rui's book.
Last time I didn't notice how the author organized the repository of chibicc. Each commit is a single step from zero to a full-featured C11 compiler (without optimizations and proper allocation of registers).
The first commit in the repository only involves a simple compiler that reads a number and generates a program that can return this number on completion. The last commit includes all the source code of the compiler that can build real projects like Git, SQLite and libpng!
https://github.com/rui314/chibicc
#c #compiler #lowlevel #system #programming
Last time I didn't notice how the author organized the repository of chibicc. Each commit is a single step from zero to a full-featured C11 compiler (without optimizations and proper allocation of registers).
The first commit in the repository only involves a simple compiler that reads a number and generates a program that can return this number on completion. The last commit includes all the source code of the compiler that can build real projects like Git, SQLite and libpng!
https://github.com/rui314/chibicc
#c #compiler #lowlevel #system #programming
GitHub
GitHub - rui314/chibicc: A small C compiler
A small C compiler. Contribute to rui314/chibicc development by creating an account on GitHub.