Do assembly languages differ among CPUs?
I'm interested in learning assembly. Basically I want to know if there are different languages (assembly) between different CPUs. If I had a modern Intel x86 processor, and an Intel x86 processor from a year ago would the assembly code by compatible across those two machines? Could I run that code on both machines without having to learn an entire other book of assembly instructions?
If I had a modern Intel x86 processor, and an Intel x86 processor from a year ago would the assembly code by compatible across those two machines?
Yes, almost certainly. Silicon vendors try to keep their instruction sets relatively stable in order to make life easier on the compiler writers and software developers in general. Every once in a while some new instructions crop up, or some old ones stop working. But it doesn't happen very often, especially on Intel.
Could I run that code on both machines without having to learn an entire other book of assembly instructions?
Again, almost certainly yes. But there are always exceptions. You might find the Intel Software Developers Manuals to be interesting reading.
链接地址: http://www.djcxy.com/p/82366.html下一篇: CPU的汇编语言各不相同?