Some starting knowledge Overview of the implementation
building binaries - as, ld and the gcc toolkit
Gas files
Opcodes
Entry points
Reading from the process arguments and converting to a numeric value
The stack
GDB debugging - live demo
Getting the length of our argument on the command line
Making things easier to understand using function calls
Converting a string to a number
Register sizes and layout
- alu, registers, memory
Processing the string
The actual Fibonacci algorithm
Creating the stack space for our array
The Fibonacci logic in assembly Setting up our variables Array memory allocation
Variable initialisation
Indexed memory
Running the loop to completion Calculating the sequence
Printing our result