I too bought an IMSAI 8080 back in 1975. Then went to University to get a CS degree but didn’t get that accomplished until 2001. Started working on my own systems and customers in 1978 and I am still a professional developer to this day.
At University I used a teletype (and a IBM Selectric terminal) like the one in your picture and my IMSAI and a Decwriter (printing terminal) set me back about $8,000 (at least $64,000 in today’s dollars) before I owned a car or a house.
I have since worked for at least 64 companies on over 1,000 projects big and small.
It’s hard to imagine having only yourself to rely on for any programming project. Today’s developers can’t imagine coding without Google and the internet. We had to know it all or at least enough of everything to just get the job done.
I don’t know if this was meant to be funny as 1024 has always (and still is 1k) but I did have a huge 24k of memory in my IMSAI and I had to toggle in a bootstrap in hex to get the basic running. I had just 1 8” floppy disk drive.
Yup. I’m the original author. I was a bit taken aback to find my words “plagiarized”. I wouldn’t mind if they had actually reached out and asked first. As it is, I’m feeling a mixture of flattered and annoyed.
Soon, BYTE magazine published the entire source code for a Small-C compiler, written in C. I typed the whole thing in, and using one of the university computers got it to compile and run, bootstrapping my way to having it run under the Digital Research CP/M operating system on an Intel 8080 based microcomputer.
How does that work? Wouldn't you need another program to compile the compiler? I always assumed that a C compiler would need to be written in a lower level assembly language, similar to how for example the Python interpreter is written in c.
I'm no expert, but I think this is the bootstrapping problem. The very first compiler couldn't be in C, but once you have a working compiler (say in assembly), you can then write a second compiler in C and compile it using the first compiler. Assuming their machine had a working version of the first compiler, they could use that. Someone correct me if I'm wrong or if there's more gotchas involved, I've also been interested in this since starting to learn a little more about compilers.
Okay that makes sense. So basically you can write an initial compiler in assembly (or another language for which the computer has a working compiler), and then use the initial compiler to compile the new compiler which may have more features or better optimization?
I was confused because it didnt say how he compiled the c compiler.
And an approach is to write a horrid compiler that barely works in something like assembly, and then use that horrid compiler to write a better compiler in the language, and then continually bootstrap your compiler with continually improving compilers. Rust was initially build in OCaml, and eventually they used an OCaml-built compiler to build a compiler that was written in Rust, and from there it has just been a spiral of Rust compilers all the way down.
You can parse source code and generate output to a file in just about any programming language worth its salt, ergo, you can create a compiler in any language worth its salt.
How fast it compiles and other limitations are, of course, at the mercy of the host language.
Yeah but how does the computer know how to run the Compiler code if it is written in C? Without a working compiler the source code is just another text file.
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.
A Canadian cross is building a cross-compiler on arch A that is meant to run on arch B, but targets arch C.
For example, I might use x64 gcc to build an arm gcc that targets risc-v. Contrived example I know, but common in embedded.
Edit: for full disclosure, you can substitute "target" for "arch." Because if you want to be pedantic, any target that is not the native target implies cross compilation. So building a Windows app using GCC on Linux would be cross compilation, even though they may both be x64 binaries.
The way this compiler worked is you needed two things: another computer (a bootstrap machine)with a C compiler, and a working assembler on the target machine.
I used a mini computer at the university as my bootstrap machine.
The very first assembler must have been written by typing in the bytes (probably in hex). This could been used to then write a very simple compiler which could be used to write another compiler etc.
Interestingly, this use a compiler to write something else doesn’t have to be done on the same computer type at all. So the first Arm programs were probably compiled on a mainframe or an Intel CPU.
I learned programming in the 70s. My university had a Burroughs B6700 mainframe that we programmed in ALGOL using punch cards. We also had a minicomputer. In order to start it, we had to load the bootstrap program in binary, using toggle switches. Once the bootstrap was loaded, the OS was loaded with paper tape. I first used the Arpanet (precursor to the internet) on a teletype
Later, I had an Imsai 8080. I got the 64K memory card. It was about 10x8 inches, completely covered with chips. The dude at the computer store asked.."What are you going to do with all that memory?"
It was the period where real proper programmers and real men were made. Not all the script kiddies nowadays who think they know better than anyone else.
15
u/clarkd99 Jul 17 '20
I too bought an IMSAI 8080 back in 1975. Then went to University to get a CS degree but didn’t get that accomplished until 2001. Started working on my own systems and customers in 1978 and I am still a professional developer to this day.
At University I used a teletype (and a IBM Selectric terminal) like the one in your picture and my IMSAI and a Decwriter (printing terminal) set me back about $8,000 (at least $64,000 in today’s dollars) before I owned a car or a house.
I have since worked for at least 64 companies on over 1,000 projects big and small.
It’s hard to imagine having only yourself to rely on for any programming project. Today’s developers can’t imagine coding without Google and the internet. We had to know it all or at least enough of everything to just get the job done.
Thanks for the memories.
14
u/[deleted] Jul 17 '20
Am I tripping or is there a longer version of this article posted before?
[Edit] Found it: https://www.reddit.com/r/learnprogramming/comments/git82j/how_i_learned_programming_in_the_early_1970s/ it seems that this website just scrapes off posts from the internet and posts it as their own.
5
u/console-write-name Jul 17 '20
Interesting read!
How does that work? Wouldn't you need another program to compile the compiler? I always assumed that a C compiler would need to be written in a lower level assembly language, similar to how for example the Python interpreter is written in c.
3
u/MpVpRb Jul 17 '20
I learned programming in the 70s. My university had a Burroughs B6700 mainframe that we programmed in ALGOL using punch cards. We also had a minicomputer. In order to start it, we had to load the bootstrap program in binary, using toggle switches. Once the bootstrap was loaded, the OS was loaded with paper tape. I first used the Arpanet (precursor to the internet) on a teletype
Later, I had an Imsai 8080. I got the 64K memory card. It was about 10x8 inches, completely covered with chips. The dude at the computer store asked.."What are you going to do with all that memory?"
1
u/[deleted] Jul 18 '20
It was a little easier in the early and mid 80's. We had home computers by then.
1
u/martianrobotics Jul 17 '20
Who is the author of this article? He could be famous now if he really worked on computers in the early 70s.
BTW, that's Bill Gates and Paul Allen in the picture.
-1
u/tonefart Jul 18 '20
It was the period where real proper programmers and real men were made. Not all the script kiddies nowadays who think they know better than anyone else.