by Stratoscope · 5y ago · 0 comments
My high school had a Teletype machine with an account on this timesharing service. At the end of the school year Transdata hired me as "night operator" working the graveyard shift for $2/hour.
The fun part was that Transdata didn't offer their timesharing service at night! So the Sigma 5 was mine to do whatever I wanted with it.
I guess they figured I would at least make sure the building was secure, and maybe do something interesting and useful with the machine.
To run a batch job, you made a deck of cards with a boot loader card at the front. This card loaded the actual program from the next group of cards, and then that program would read and process the rest of the deck. Each card was 80 bytes.
Naturally, we tried to see what we could do with just a single card!
The Sigma 5 had a speaker you could toggle with an instruction, so one popular single card program toggled the speaker in a way that sounded like bird chirps.
Another popular card was a simple print program. Put this card at the front of a deck, and it would read the rest of the cards in the deck and print them on the line printer one by one.
But it was slow. It read a card, then printed the card and waited for that print line to finish because it was printing directly from memory. Only then it read the next card, printed that card, and so on.
I looked at the code and found there were a few bytes left, just enough to make the print program double buffered. Now it would read the first card into the first buffer and print it, and while it printed read the next card into the second buffer, then print from that buffer while reading the next card after, and so forth. It was twice as fast!
Of all the programs I've worked on since then - many of them massively more complex - this one sticks in my mind as something I'm proud of.
I just wish I still had that card.
Say I write a deck of FORTRAN code. What do I do with it next? Do I stack the a deck of cards labelled "FORTRAN COMPILER" and append my stack of code and a card printer pops out cards punched out with machine code?
Things were faster if you had a tape drive. Your source code would normally be on cards, but the compiler would be on tape.
You can see a video of FORTRAN II compilation on the 1401 here: https://www.youtube.com/watch?v=uFQ3sajIdaM
Other comments described a later system such as the IBM System/360, where you had an operating system so you could use a card specifying Fortran compilation and you were set.
Description of the compiler: http://ibm-1401.info/1401-IBM-Systems-Journal-FORTRAN.html
The cards you put up with has two // These are you control cards One of these will be program card The next card with dd * you will be your program ...
An example is on p.88 of this manual http://www.computinghistory.org.uk/downloads/9041 , in fact follow up you have many details.
The computer center had stacks of control cards for different functions like this - they were color coded - so you had to remember to get a pink card and put it before your program deck.
It was possible to punch a binary output deck of your compiied program or even store it on disk or tape - there were different control cards for that.