Daniel Janus 9/25/2021

Testing a compiler that can’t even print stuff out

Read Original

The author details their experience adding a testing framework to 'Lithium,' their toy x86 assembler and Lisp compiler. The challenge was creating tests for a compiler that produces raw, non-relocatable x86 binaries with no OS or C library dependencies. The solution involved using a DOS interrupt to capture register values and redirecting the output to a file for verification.

Testing a compiler that can’t even print stuff out

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser