1
vote
1answer
392 views

How to check if a binary require sse4 or AVX on linux

On Linux /proc/cpuinfo allow to check all the CPU flags the machine have, in a simple way. Usually, If a program require a subset of an instruction set, the best way is to run it and check if it raise ...
2
votes
3answers
2k views

Latency of CPU instructions on x86 and x64 processors

I'm looking for some table or something similar that could help me to calculate efficiency of assembly code. As I know bit shifting takes 1 CPU clock, but I really looking how much takes addition ...
-4
votes
1answer
85 views

Best assembler -> C book? [closed]

I know there are good assembler books and there are good C/C++ books, but is there a book which maps the two programming languages/levels together?
3
votes
1answer
305 views

Intel assembler/architecture documentation?

Would anyone know where the best "official" Intel documentation regarding the low level architecture/assembler internals would be? How the ESP works, the various registers- fetching values from RAM ...
1
vote
1answer
582 views

Understanding the nop byte(s)

Ok, so I was reading through the AMD64 manuels and knowing that nop is really an xchg eax, eax, I looked at the xchg and found something interesting, that it seems a byte can be encoded into the ...
2
votes
1answer
335 views

“nop; jmp short” vs. “jmp short; nop”

Ok, first let me get this straight: This is not about micro optimization. But, I know in bootloaders on the partition, a lot use the jmp short; nop coding. But it is to my understanding that the less ...
0
votes
2answers
364 views

Understanding 8086 instruction encoding

I am trying to understand 8086 instruction encoding. Even though I found a general instruction and a bulky reference I still don't get it. Could you please explain me how the following "translations" ...