#folder
How Programs Run
- Code is stored as machine code written in binary
- These instructions are executed by the computer
- Code is data. That means code is stored as binary instructions in memory (the same memory the code will use to store variables, etc)
- The current instruction in use is called the program counter, which is stored in a register depending on the architecture (MIPS special register, ARM
R15
)
- Assembly#Assembly Language is an abstraction on top of this binary. It allows us to use mnemonics or aliases to make these binary instructions readable