CrashCourse · @crashcourse

The First Programming Languages: Crash Course Computer Science #11

Uploaded June 8, 2017 · Length 11:52

The First Programming Languages: Crash Course Computer Science #11

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.

  1. 0:03

    This episode is brought to you by CuriosityStream.

  2. 0:05

    Hi, I’m Carrie Anne and welcome to CrashCourse Computer Science!

  3. 0:08

    So far, for most of this series, we’ve focused on hardware -- the physical components of

  4. 0:12

    computing -- things like: electricity and circuits, registers and RAM, ALUs and CPUs.

  5. 0:17

    But programming at the hardware level is cumbersome and inflexible, so programmers wanted a more

  6. 0:21

    versatile way to program computers - what you might call a “softer” medium.

  7. 0:24

    That’s right, we’re going to talk about Software!

  8. 0:27

    INTRO

  9. 0:36

    In episode 8, we walked through a simple program for the CPU we designed.

  10. 0:40

    The very first instruction to be executed, the one at memory address 0, was 0010 1110.

  11. 0:46

    As we discussed, the first four bits of an instruction is the operation code, or OPCODE

  12. 0:50

    for short.

  13. 0:51

    On our hypothetical CPU, 0010 indicated a LOAD_A instruction -- which moves a value

  14. 0:57

    from memory into Register A.

  15. 0:59

    The second set of four bits defines the memory location, in this case, 1110, which is 14

  16. 1:04

    in decimal.

  17. 1:05

    So what these eight numbers really mean is “LOAD Address 14 into Register A”.

  18. 1:09

    We’re just using two different languages.

  19. 1:11

    You can think of it like English and Morse Code.

  20. 1:14

    “Hello” and “......-...-.. ---” mean the same thing -- hello! -- they’re just

  21. 1:19

    encoded differently.

  22. 1:20

    English and Morse Code also have different levels of complexity.

  23. 1:23

    English has 26 different letters in its alphabet and way more possible sounds.

  24. 1:28

    Morse only has dots and dashes.

  25. 1:29

    But, they can convey the same information, and computer languages are similar.

  26. 1:33

    As we've seen, computer hardware can only handle raw, binary instructions.

  27. 1:37

    This is the “language” computer processors natively speak.

  28. 1:40

    In fact, it’s the only language they’re able to speak.

  29. 1:43

    It’s called Machine Language or Machine Code.

  30. 1:45

    In the early days of computing, people had to write entire programs in machine code.

  31. 1:49

    More specifically, they’d first write a high-level version of a program on paper,

  32. 1:53

    in English, for example...

  33. 1:55

    “retrieve the next sale from memory, then add this to the running total for the day,

  34. 1:59

    week and year, then calculate any tax to be added”