
Episode 95: How Computers Work Part V - Assembly Language and the Operating System
The Science of Everything Podcast
00:00
Using Symbols in Assembler Programming
The assembly process has to occur in two stages. In the first pass over the programme, a table of symbols is built up. And then during the second pass over the program, the machine code is actually generated using all other values from the symbol table. So for example, suppose i use a variable i a bunch of times in my programme, in my assembly programme, and then i have pseudo instructions saying that telling the assembly to define eye as a variable - so the assembly will see that and then put that on its table of symbols. When it's generating the machine code, every time it sees that variable eye, it replaces it with the address in memory that it's generated for
Transcript
Play full episode