- Are you trying to read x86-64 Assembly Language Programming with Ubuntu?
- Are you on a Mac?
- This Repo's for You
- Install Homebrew if you don't already have it
brew cask install docker
- Run
make hello.test
The Makefile sets up a Docker container running the appropriate version of Ubuntu for you to
follow along with Jorgensen's book. The yasm
, ld
, and gdb
commands are all executed
inside the container, but you can still edit your source files (and see the output!) from your Mac.
Thanks to Docker's adoption of Apple's Hypervisor, we don't actually have to acknowledge that
there's a virtual machine here! 🎉
- Write your program in
whatever.s
- Write your GDB Script in
whatever.gdb
- Run
make whatever.test
- In Calculator.app, press
⌘3
to open "Programmer Mode" (Hex conversions and bitwise arithmetic).
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.