3 ms·
> Again, just web search them. No one remembers all of the instructions by heart, there's just no point. Another good tip: download the official architecture m
by cesarb 6y ago
> Again, just web search them. No one remembers all of the instructions by heart, there's just no point.
Another good tip: download the official architecture manuals, they're freely available for the most relevant major architectures (and for x86, both Intel and AMD have their own version). They're monstrous doorstoppers (several volumes with many thousand pages), but include in excruciating detail the description of every single instruction, with the advantage that they'll work even if your Internet connection is offline.
- genewitch 6y ago> but include in excruciating detail the description of every single instruction well, at least the official ones with the officially supported operands. Sandsifter has a lot to say about how many undocumented instructions exist on just the "exposed" x86 part of the CPU, nevermind the ARM and other sub ring-0 stuff.
- cesarb 6y agoYes, but in the context of this thread: undocumented instructions can change from generation to generation of a processor architecture, while documented instructions are much more stable; and because of that, compilers will not generate undocumented instructions. When reading compiler output, the official documentation of the instructions (plus documentation of the calling conventions) should be enough.