Published On Dec 3, 2023
This is Chapter 2 of the Machine Code Essentials series:
Chapter 1: • Reinventing the Processor
Chapter 2: ... you are here ...
Chapter 3: • How functions work in asm
Chapter 4: • from Transistors to CPU
The only reason for the CPU stack to exist is recursive function calls.
We will go step-by-step trying to reinvent the machine code for function calls.
0:00 Introduction
0:13 Function call
0:21 A function from the machine point of view
0:49 Link register
1:33 Nested functions calls
2:15 Recursion example
2:38 The appearance of stack
4:15 Summary
#arm #c #cpu #compiler #stack #function #programming #assembly