Appendix J — Updated by AirvZxf
I'm Israel Roldan and I try to learn the GNU Assembler (as or gas) and I didn’t find many resources but this book is great.
This is the x86-64 edition of the book, for 64-bit programs. It is based on the x86 32-bit edition, which is maintained in its own repository.
All the information is in my GitHub repository. To check the advance on this project and the pending reviews go to the TO-DO's list. I added some script to compile the source files, emulating to i386/x86.
Motivations
I believe that Linux is the future, I dream with a world when everyone is using Linux in our laptops, desktop computers, and all the video game companies make perfect games for Linux.
I was researching about GNU Assembler (“as” or “gas”) but unfortunately, there are not many resources, these resources talk about the most popular as “NASM” and “FASM”.
Why NOT focus on “NASM” or “FASM”? I started with “NASM” then I saw a few years ago the active development stopped. I researched about “FASM” and looks like it’s awesome but then I discovered some curious detail. These assemblers can compile in many architectures and it is powerful but trying to be very compatible they spend a lot of effort to create the most generic binary source possible (1). At this moment I start to consider the possibility to use the pure Linux assembler because for me the idea to use a multi-architectural assembler is only marketing. I have been software developer over 14 years and I never created a multi-architecture system neither in my personal projects. Why am I living in a utopia? Wanted a tool to convert to other architectures, if I always create programs for Linux and very rarely for Windows. In these cases I usually use Python or Java. Note: This is my personal point of view, haters please hate more.
Why use Assembler rather other languages programs? The benchmarks that I did demonstrate that Assembler is the most powerful even tan C which is the top language. My benchmarks and the C benchmarks.
Why update this book? This book is one of the best that I found but it has many areas of opportunity. I read until the chapter 3 and I had three doubts in the final exercises but there are no answers. The book said that we saw this subject and I reviewed all the chapters and it didn’t.
Deep thanks to the men and companies who inspired me to be better and thanks to the Open Source: Linus Torvalds, Richard Stallman, Linux, GNU, GitHub.
FASM: Design Principles, or Why FASM Is Different sections “4) Resolving The Code” and “5) Complex Solutions With Simple Features”. In general this document provides an overview of the complexity behind trying to do an assembler multi-architecture.↩︎