how much memory can be accessed by a 32 bit machine?

前端 未结 7 1499
忘了有多久
忘了有多久 2020-12-02 06:40

What is meant by 32bit or 64 bit machine?

It’s the processor architecture…a 32 bit machine can read and write 32bit data at a time same way with 64 bit machine….

7条回答
  •  自闭症患者
    2020-12-02 07:42

    Going back to a really basic idea, we have 32 bits for our memory addresses. That works out to 2^32 unique combinations of addresses. By convention, each address points to 1 byte of data. Therefore, we can access up to a total 2^32 bytes of data.

    In a 32 bit OS, each register stores 32 bits or 4 bytes. 32 bits (1 word) of information are processed per clock cycle. If you want to access a particular 1 byte, conceptually, we can "extract" the individual bytes (e.g. byte 0, byte 1, byte 2, byte 3 etc.) by doing bitwise logical operations.

    E.g. to get "ffffdffffffffd", take "aaaaaaaabbbbbbbbccccccccffffdffffffffd" and logical AND with "00000000000000000000000011111111".

提交回复
热议问题