Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Must CPU have an accumulator?

Before you laugh at me: I want to ask arithmetic operation is done in ALU unit or accumulator. I read a book it says accumulator is a register for doing arithmetic.

This Accumulator said

Without a register like an accumulator, it would be necessary to write the result of each calculation (addition, multiplication, shift, etc.) to main memory, perhaps only to be read right back again for use in the next operation.

Does this mean that without accumulator the operation itself still can be done?

I'm from high level language I need to understand it.

like image 549
Plain_Dude_Sleeping_Alone Avatar asked Jun 26 '16 18:06

Plain_Dude_Sleeping_Alone


People also ask

What does the accumulator do in a CPU?

Role of an accumulator An accumulator is primarily used as a register in a CPU to store intermediate logical or arithmetic data in multistep calculations. For such calculations, it functions as a temporary storage location.

Where is the accumulator located CPU?

The row of digit-wheels in the carriage (at the front), is the Accumulator.

Is accumulator same as ALU?

The accumulator can hold one of the two operands during any ALU operation. If we want to add two bytes together, this would just be an example here; one byte would go to the accumulator, and the other in memory or general purpose register. When executed the two numbers serve as the input to the ALU.

What are the uses of an accumulator?

They are used to maintain pressure, store and recapture energy, reduce pressure peaks, power chassis suspensions, and dampen shock, vibration and pulsations. Under gas pressure, accumulators store a volume of fluid that can be re-fed into the hydraulic system when it is needed.


1 Answers

Yes, you don't need an accumulator for a CPU. For example, stack-based processors typically only have one or two stack pointers but no accumulator. As the article says, these processors load the values to operate on from memory just prior to operation.

like image 81
fuz Avatar answered Nov 01 '22 23:11

fuz