What’s the best way to remember the x86-64 System V arg register order?
If you remember C memcpy‘s arg order, and how rep movsb works, that’s most of the way to remembering x86-64 System V. The design makes memcpy(dst, src, size) cheap to implement with rep movsb, except leaving RCX unused in more functions because it’s needed for variable-count shifts more often than anything needs RDX. Then R8 … Read more