SectorC is a C compiler written in x86-16 assembly that fits within 512 bytes of a boot sector. It supports a subset of C including global variables, functions, if/while statements, operators, pointer dereference, and inline machine code. The compiler uses space-delimited tokens and treats atoi() as a hash function to minimize
•11m read time• From xorvoid.com
Table of contents
Supported languageTokenizingImplementing Barely CMinimizing with Byte-Threaded CodeMinimizing the Straight-Forward versionLook Ma, A Real C!GrammarInline Machine-CodeError-HandlingRuntimeExamplesConclusionSort: