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

Top of the Week

2
Designing Design Systems
TkDodo Dominik Dorfmeister 2 votes
3
Introducing RSC Explorer
Dan Abramov 1 votes
5
Fragments Dec 11
Martin Fowler 1 votes
6
Adding Type Hints to my Blog
Daniel Feldroy 1 votes
7
Refactoring English: Month 12
Michael Lynch 1 votes
9