Re:Unix History and the `DC` Calculator
by throwaway81523 on Thursday September 05, 2024 @03:45AM
(#41454490)
Self-followup: yes, the v6 source code is here: dc1.s, dc2.s, etc.
https://minnie.tuhs.org/cgi-bin/utree.pl?file=V6/usr/source/...
I'm pretty sure the version with v6 Unix was written in PDP-11 assembler. It's possible it was translated from a version written in B? It wasn't THAT simple, since it had to implement arbitrary precision arithmetic. I have a vague memory of it using a "buddy system" storage allocator, a scheme also described in Knuth volume 1. Maybe the code is still around somewhere.