Difference between word size and clock speed?

I have no idea if my question is suitable or not. But what I wanted to know is how both of them affect processor performance. The only thing I know for a processor with the same architecture is that the higher the clock speed, the faster the processor is processed, but what about the word size? How will this affect the processor speed and which really determines the processor speed? Does this contradict each other? Thank.

+3
source share
5 answers

Theoretically, a larger word size makes the code a bit slower. The reason is that in a 64-bit architecture, pointers are 64-bit words, so data structures that are full of pointers (lists, trees, hash tables ...) tend to use more RAM than the equivalent 32-bit code bit architecture. Normal RAM is slow (it doesn’t respond as fast as the processor would like), so the processor embeds a small amount of RAM, called the cache, where the most frequently used data is stored. The cache size is limited (usually 32 KB on modern x86 from Intel). 64-bit pointers make it harder for the processor to store as many data elements as possible, resulting in reduced performance.

However...

, x86:

  • . . 3D- () - () . .

  • 64- 4 . RAM- (, ) 4 64- , , , , . 32- .

  • x86 ( Mac) 64- 64- ; , . 64- SSE2, , x86.

, Mac, , 64- . 64- ; , 64- .

(, PowerPC), 32- 64- , 32-, ( 4 , RAM ) , 32- (, ).

+1

...

/ , :

  • ()
  • CPU
  • /

DataTransfer = WordSize * CpuClock/RW_Cycles

EDIT:

! equtaition 100%, DSP FPGL. DMA, -1?

0

, ... , , , , ( ), , , , .. , , . , 8- 1 , 64- 3,2- , , 64- 1,8 , 32- 2,4 , . - .

0

, , / / , , 32 64 .

0

. 64- 8 , 8 .

. 32 4 32- , 8- ( ).

EDIT (about clock frequency): all CPU operations (loading from memory, saving to memory, adding values ​​...) require a given number of clock pulses, usually one clock signal for the RISC CPU. The duration of the clock timer depends on the frequency of the clock. A frequency of 1 GHz means 1 billion clock cycles per second, that is, one billion CPU operations performed every second. With a frequency of 2 GHz, the processor can perform twice as many operations in one second.

-1
source

Source: https://habr.com/ru/post/1794058/


All Articles