The earliest known versions of Dennis Ritchie's first C compiler
github.com
github.com
The TMG interpreter used by Thompson to create B was implemented for the PDP-7 by Doug McIlroy in PDP-7 assembly language: http://minnie.tuhs.org/pipermail/tuhs/2014-September/005149....
This is what TMG looked like: http://multicians.org/tmg.html
And that PDP-11 emulator is a blast.
RESTRICTED RIGHTS
Use, duplication or disclosure is subject to
restrictions stated in Contract with Western
Electric Company, Inc. switch (o=symbol()) {
....
/* short constant */
case 21:
case21:
*cp++ = block(1,21,ctyp,0,cval);
goto tand;
.... elsewhere in the switch ....
cval = -cval;
goto case21;