News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Why "DIV" is slower ?

Started by sw337, September 13, 2006, 10:56:43 AM

Previous topic - Next topic

sw337

 :eek

Please some body tell me this...

Why some instructions are slower than other on an INTEL :(

( " :tdown" is used as slower than.)

Like why DIV  :tdown MUL
Why LOOP @b :tdown @@: DEC ecx JNZ @b etc ...

Thanks in advance to anybody who replies.

Tedd

Remember what I said about the instructions being translated into microcode first, and then that is what is executed?
Complex instructions require more operations, and so take longer to translate and then execute.
(And this is why processors don't do native C -- it doesn't map directly onto the hardware, and so would still need to be translated in some way.)

There is also the aspect that Intel decided to optimize some instructions more than others; you can only fit so much on a chip.
No snowflake in an avalanche feels responsible.