From cedd1d98ecd84070437e5c3bb1b48b6fef650ae3 Mon Sep 17 00:00:00 2001 From: dwrz Date: Fri, 13 Nov 2020 17:19:09 +0000 Subject: [PATCH] Update x86 assembly slides --- x86-assembly/slides.org | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/x86-assembly/slides.org b/x86-assembly/slides.org index eadc0b8..f3bd7b0 100644 --- a/x86-assembly/slides.org +++ b/x86-assembly/slides.org @@ -28,12 +28,13 @@ node -e "console.log('Hello, World');" How does "Hello World" get onto the terminal? * 5. What does this program do? +Let's try something simpler. #+begin_src bash node -e "" #+end_src -Does it do /anything/? +Does this do /anything/? * 6. It does /something/. @@ -355,7 +356,7 @@ What matters is agreement on an approach. System V AMD64 ABI is calling convention for Unix x64 systems: - Some registers must be saved by the caller, so callee can use them. -- Some registers must be saved by callee, if the plan to use them later. +- Some registers must be saved by callee, if they plan to use them later. - Some registers used to pass arguments. - Stack used to pass extra or large arguments. - RAX and RDX are used for return values. @@ -398,11 +399,12 @@ node -e "" - Insight into how computers work. - Appreciation for higher level, and work done to get us here. - A platform to better understand things like functions, closures, APIs, pass by reference and pass by value, performance. +- A few mysteries to leave you curious... * 36. References / Further Reading - [[https://www.youtube.com/watch?v=tpIctyqH29Q&list=PL8dPuuaLjXtNlUrzyH5r6jN9ulIgZBpdo][Crash Course: Computer Science]] - Davy Wybiral, [[https://www.youtube.com/playlist?list=PLmxT2pVYo5LB5EzTPZGfFN0c2GDiSXgQe][Intro to x86 Assembly Language]] +- [[https://www.gnu.org/software/gdb/][GDB]] - Jennifer Rexford, [[https://www.cs.princeton.edu/courses/archive/fall05/cos217/][Princeton COS 217: Introduction to Programming Systems]] - [[https://en.wikipedia.org/wiki/Structured_program_theorem][Structured Program Theorem]] -- [[https://www.gnu.org/software/gdb/][GDB]]