Page 1 of 1

operand sizes and clock cicle.

Posted: Thu Nov 16, 2006 1:22 pm
by digo_rp
hi guys, i would like to know where can I find some docs "intel/amd" about operand size and how much clock cicle that operand takes.

as my english is so poor I´m trying to have a help with this forum

my question is something like that:

wich is better?

mov eax, _xxx_handler
call eax

----- or -----

call _xxx_handler

?

I saw, don´t know where that call addr takes about 20 cicles os clock

and call reg, takes only 2-4 bytes

is that right ?

Posted: Thu Nov 16, 2006 2:56 pm
by Candy
The second, in about any case, since it's a fixed jump. The first might be seen as an unpredictable jump and in worst-case could cause a pipeline flush, making for about 30 cycles of delay on a NetBurst-cpu.

Instructions don't have a cycle count anymore on current machines, they have, at best, a cycle latency. They're too unpredictable and unreliable to use for any sort of instruction ordering. Why do you care about sub-nanosecond offsets by the way?

Posted: Thu Nov 16, 2006 5:18 pm
by kataklinger
You may want to look at "Intel Architectecture Optimization Reference Manual". I don't know if AMD has simular manual.

Posted: Thu Nov 16, 2006 5:24 pm
by Combuster
For AMD: the top two hits at google: http://www.google.nl/search?client=fire ... gle+zoeken

tnx so much

Posted: Fri Nov 17, 2006 3:12 am
by digo_rp
tnx so much