I'm just starting to learn Assembly (I've worked with C ++ before).
I wonder why we need to use registers in addition to using memory, why not just use memory?
I think the most obvious reason is that doing calculations in a register is much faster than doing calculations in memory. But is this the only reason?
CPU, ALU, . , , .
, ?
. , CPU. . SRAM, , , .
DRAM, , , DRAM . ,
: ?
, . , , , 512 , 64 32 16- . , , " " MosTek 6502 ( 0-255, 1- ) - . .
:
. , , DRAM. ( - , , SRAM. SRAM .) . DRAM , 200 1000. L1, 2-4 .
. , - .
(, , hart) . ( , , , , zSeries, , .)
, . , .
, , , . " " , , " ", " ", " ALU", " " .., (, ) ; .. , , , .
Source: https://habr.com/ru/post/1683302/More articles:Apache Drill requires Java 1.7 or later to run - apache-drillUsing jQuery and Math.random () to select properties of nested objects - javascriptAre custom CSS properties global for linked CSS documents? - cssVim (window resizing): how easy is it to make windows equally tall for one column? - vimConditional in coroutine based on whether it was called again? - pythonCPU with address GPR files, address of register variables and smoothing between memory and registers - cHow to “refresh” a div without double-clicking? - jsonЗамените все строки, за исключением скобки в vim - vimWhat is the extension in Visual Studio 2017 Disambiguates "bool" versus "std :: function" when passing in lambda? - c ++VersionNumber and VersionString in umbrella header - iosAll Articles