Toggle navigation
CS3650 Computer Systems
General
Syllabus
Schedule
Office Hours
Assignments
Resources
Week 3
Memory, the Stack, Recursion
Readings
Slides & Notes
Code
Additional Resources
Readings
Dive Into Systems, sections:
1.4.1 (The Stack)
2.1 (Parts of Program Memory and Scope)
7.5 (Functions in Assembly)
Nat Tuck’s Assembly Design Recipe
Assembly Guide
Slides & Notes
Prof Jackson’s slides
Ferd’s notes
Code
Listing
File
Preview
Download
Description
1.
fact.s
HTML
fact.s
Three versions of factorial in assembly
2.
forloop.s
HTML
forloop.s
Print an array of numbers in a “for loop”
Additional Resources
Please look over these curated links.
x86-64 SysV ABI
(local
PDF
)
AMD Programmer’s Manual, Volume 3
AMD64 Linux Syscalls
Writing a Function in Assembly: Intel x86 ATT Assembly Stack Part 1
Writing a Function in Assembly: Intel x86 ATT Assembly Stack Part 2
Writing a Function in Assembly: Intel x86 ATT Assembly Stack Part 3