Skip to content

Latest commit

 

History

History
53 lines (26 loc) · 795 Bytes

README.md

File metadata and controls

53 lines (26 loc) · 795 Bytes

Notes for the Programming Guild Presentation

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