CrashCourse · @crashcourse
The First Programming Languages: Crash Course Computer Science #11
Uploaded June 8, 2017 · Length 11:52
Summary
This video explains the evolution of programming languages from machine code to assembly and early high-level languages like FORTRAN.
- machine code explained
- assembly language basics
- what is an assembler
- grace hopper compiler
- early programming languages
- history of software
Transcript preview
The first 2 minutes of the transcript. Select a timestamp to watch that moment on YouTube.
- 0:03
This episode is brought to you by CuriosityStream.
- 0:05
Hi, I’m Carrie Anne and welcome to CrashCourse Computer Science!
- 0:08
So far, for most of this series, we’ve focused on hardware -- the physical components of
- 0:12
computing -- things like: electricity and circuits, registers and RAM, ALUs and CPUs.
- 0:17
But programming at the hardware level is cumbersome and inflexible, so programmers wanted a more
- 0:21
versatile way to program computers - what you might call a “softer” medium.
- 0:24
That’s right, we’re going to talk about Software!
- 0:27
INTRO
- 0:36
In episode 8, we walked through a simple program for the CPU we designed.
- 0:40
The very first instruction to be executed, the one at memory address 0, was 0010 1110.
- 0:46
As we discussed, the first four bits of an instruction is the operation code, or OPCODE
- 0:50
for short.
- 0:51
On our hypothetical CPU, 0010 indicated a LOAD_A instruction -- which moves a value
- 0:57
from memory into Register A.
- 0:59
The second set of four bits defines the memory location, in this case, 1110, which is 14
- 1:04
in decimal.
- 1:05
So what these eight numbers really mean is “LOAD Address 14 into Register A”.
- 1:09
We’re just using two different languages.
- 1:11
You can think of it like English and Morse Code.
- 1:14
“Hello” and “......-...-.. ---” mean the same thing -- hello! -- they’re just
- 1:19
encoded differently.
- 1:20
English and Morse Code also have different levels of complexity.
- 1:23
English has 26 different letters in its alphabet and way more possible sounds.
- 1:28
Morse only has dots and dashes.
- 1:29
But, they can convey the same information, and computer languages are similar.
- 1:33
As we've seen, computer hardware can only handle raw, binary instructions.
- 1:37
This is the “language” computer processors natively speak.
- 1:40
In fact, it’s the only language they’re able to speak.
- 1:43
It’s called Machine Language or Machine Code.
- 1:45
In the early days of computing, people had to write entire programs in machine code.
- 1:49
More specifically, they’d first write a high-level version of a program on paper,
- 1:53
in English, for example...
- 1:55
“retrieve the next sale from memory, then add this to the running total for the day,
- 1:59
week and year, then calculate any tax to be added”


