Home > other >  Science: why do computers need memory?
Science: why do computers need memory?

Time:09-30

Others said that computer programs need to pass the memory can be executed by the CPU, I believed, but always don't understand the inside of the CPU data and instructions are binary machine code (how data and instructions are CPU) put the, why still need memory? Don't put the CPU and put the disk?

CodePudding user response:

All kinds of data is too big brother, all the CPU's cache will not fit, and put the disk inside too slow, so has the memory hierarchy concept

CodePudding user response:

reference 1st floor winnerwei1 response:
all kinds of data is too big brother, all the CPU's cache will not fit, and put the disk inside too slow, so has the memory hierarchy, the concept of
that is memory is to solve all kinds of bottlenecks and appear, such as the transmission speed, storage space and cost of medium etc, with the structure of von neumann and harvard structure what does it matter?

CodePudding user response:

Harvard structure features processing units and storage units are separated, the processing unit operation speed quickly, the data of the memory access speed to keep up with is the bottleneck of the current processor

CodePudding user response:

Can a weak back to the way, I need memory is for the sake of money?

CodePudding user response:

Great view

CodePudding user response:

, for example, you want to run a game now, assuming that 2 G, but inside the CPU is not 2 G space can be put down, if you don't memory, now only CPU and hard disk, now that you only on the hard disk, CPU will not fit if you is a mechanical drive, we all know how many GHz CPU is generally, hard drive transmission speed, I suggest you do a test, will be a larger package of from a disc copy to another plate (D disk copy to E disk, for example), you will find that the speed of the two was sent several orders of magnitude, what can cause this problem, when you play the game, feeling is not used a computer, but with a remote control air conditioning, CPU and memory speed is sent an order of magnitude, memory and hard drive speed is sent several orders of magnitude, why want to use such a multilayer structure to design the computer, because of cost, for use within the CPU caches, is CPU to write a few level cache, is the fastest in the storage medium, but if all use this kind of stuff in the computer, the estimated computer to play only one think astute,

CodePudding user response:

Memory is faster than the disk...

CodePudding user response:

Sicong won't afford it, because of CPU cache greaten, speed is slow, so the L1, L2, L3 cache even if add up in the top of Intel processors are all but more than 10 M

CodePudding user response:

People also need to memory

CodePudding user response:

CPU can only in its address line addressing... even if hard drive fast enough, also cannot directly read/write drives,

CodePudding user response:

The CPU internal cache (cache), such as the level of cache, the second level cache (due to the increase of amount of data, traditional have been unable to meet the demand of data buffer cache), due to the CPU integrated chipset, northbridge corresponding interface faster, and peripherals such as hardware or drives to read and write speed is quite slow, normal peripherals, CPU accesses the data first read into memory, the memory as a buffer to read data from memory, in addition, the need to point out, part of the occurrence of the CPU is integrated, such as an AMD platform,

CodePudding user response:

The data is too big brother

CodePudding user response:

The future one day don't need memory hard drive speed exploded
  • Related