#SectorC

2023-07-11

#SectorC es un #compilador de #C escrito en ensamblador de x86_16 que entra en el sector de arranque de 512 byytes de una máquina x86.
Soporta un subconjunto de C que es lo suficientemente grande para escribir programas interesantes. Probablemente el compilador de C más mínimo jamás escrito.
xorvoid.com/sectorc.html

DansLeRuSH ᴱᶰdanslerush@fosstodon.org
2023-06-16

#CLanguage « #SectorC is a #C #compiler written in x86-16 assembly that fits within the 512 byte boot sector of an x86 machine. It supports a subset of C that is large enough to write real and interesting programs. It is quite likely the smallest C compiler ever written. » xorvoid.com/sectorc.html

2023-05-30

#SectorC: A #C #Compiler in 512 bytes

“Big Insight #2 is that atoi() behaves as a (bad) hash function on ordinary text. It consumes characters and updates a 16-bit integer. Hashes are perhaps the holy-grail of computer-science. With a good hash, we can just side-step all the hard problems by trading them for an even harder problem (hash collisions), and then we just ignore that harder problem. Brilliant. (sticks fingers in ears) 🤪”

xorvoid.com/sectorc.html

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst