r/programming • • Jul 17 '20

What it was like learning programming in the early 1970s

[deleted] — view deleted post

18 Upvotes

31 comments sorted by

View all comments

Show parent comment

1

u/FatalElectron Jul 17 '20

using one of the university computers

They used a computer that had a C compiler to produce another compiler that produced CP/M executables. Then use that compiler to produce a CP/M executable version of the compiler.

1

u/console-write-name Jul 17 '20

Okay that makes sense, thanks

1

u/ElGringoMojado Jul 19 '20

Multi stage process:

  1. Modify the assembly generating modules of the compiler to generate 8080 assembly.
  2. Compile the compiler on another machine that already has a working C compiler.
  3. Use the result to compile the compiler producing 8080 assembly of the compiler.
  4. Take the generated 8080 assembly to the target CP/M machine.
  5. Assemble the 8080 code into an executable.
  6. Use the resulting executable to compile the compiler.
  7. Enhance as desired iteratively.