LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   ASM x32 vs ASM x64 (https://www.linuxquestions.org/questions/programming-9/asm-x32-vs-asm-x64-624076/)

Tegramon 02-26-2008 08:14 PM

ASM x32 vs ASM x64
 
Can this book be used with a Quad Core system with a x64 openSUSE?

http://savannah.nongnu.org/projects/pgubook/

osor 02-26-2008 10:20 PM

Yes (x86-64 is backwards-compatible with x86, SMP will be managed by the kernel, not by you). What you will not get from that book is the knowledge of the 64-bit extensions to x86 assembly language (this includes the 64-bit counterparts of the registers and arithmetic ops, and, the more interesting, relative addressing mode).

Tegramon 02-27-2008 12:43 PM

Quote:

Originally Posted by osor (Post 3071034)
Yes (x86-64 is backwards-compatible with x86, SMP will be managed by the kernel, not by you). What you will not get from that book is the knowledge of the 64-bit extensions to x86 assembly language (this includes the 64-bit counterparts of the registers and arithmetic ops, and, the more interesting, relative addressing mode).

So ... if I learn from that ... would that not be like some sort of "stale" information? Or is it a good start?

osor 02-27-2008 02:26 PM

Quote:

Originally Posted by Tegramon (Post 3071752)
Or is it a good start?

It’s a good start. Once you learn x86 assembly well enough, most of the 64-bit extensions are easy to get. As I said before, the only drastically different feature of x86-64 from an x86 assembly programming perspective is the instruction-pointer-relative addressing (which is similar to how RISC archs such as SPARC can address memory).

Here is a short list of differences for after you have learned x86 assembly.


All times are GMT -5. The time now is 02:04 AM.