Ok, it has been a few months since Arch Linux announced that it will only provide x64 image in the future. Android also has been support x64 and arm64 for a long time. Seems that it’s true that x86 is on the way of out of time. So it’s time to learn some thing about the ABI in x64 and arm64.
PS: If you’ve read the ABI manual about Linux on X64/Arm64, there is no need to read this article. It’s just for beginners and lazy guys who don’t want to read manual.
As we know that C/C++ is the best language for us to research the ABI because they cover both “Procedure Oriented“ and “Object Oriented“ language. So we will use simple C/C++ console application to dig the details about ABI. Now let’s rock.
First we will analysis the x64 architecture. Please view the C source code below.