
▲ 22 r/javascript
C99 real mode compiler written in TS that outputs raw bootable 16bit binaries
Hi, a few years ago I wrote a C99 compiler that generates a bootable binary which, once loaded onto a floppy disk, can be run in x86 real mode. It supports x87 floating-point operations, has a simple IR, optimizes the generated code, and produces output of fairly decent quality (by toy compiler standards). Maybe someone will find it interesting.
u/dywan_z_polski — 7 days ago