Assembly Language Reimagined: Programming the Intel x64 Microprocessor in Linux
by John Schwartzman
Afterword
This book is based on first principles. You have learned what the CPU can do and what it can’t, and how it accomplishes what it can do. You have learned about the logic gates inside the CPU and how they’re used to change the order of execution of a program.
Assembly language is closely tied to the C programming language. Much of what we accomplished was by calling various methods of the C runtime library. We used C programs to call assembly language modules, and we used assembly language programs that had main subroutines inside them. These modules did some work in assembly language, but more often than not, they called C methods and functions to do the actual work.
We saw how the operating system uses the C Calling Convention to pass ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access