Skip to content

Files

Latest commit

 Cannot retrieve latest commit at this time.

History

History

asm-talk

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Oct 25, 2018
Oct 25, 2018
Oct 25, 2018
Oct 25, 2018
Oct 25, 2018
Oct 25, 2018
Oct 25, 2018
Oct 25, 2018
Oct 25, 2018
Oct 25, 2018
Oct 25, 2018
Oct 25, 2018

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