Why misaligned address access incur 2 or more accesses?

前端 未结 4 1610
野性不改
野性不改 2020-12-10 08:47

The normal answers to why data alignment is to access more efficiently and to simplify the design of CPU.

A relevant question and its answers is here. And another s

4条回答
  •  没有蜡笔的小新
    2020-12-10 09:37

    In my opinion that's a very simplistic assumption. The circuitry could involve many layers of pipeling and caching optimisation to ensure that certain bits of memory are read. Also the memory reads are delegated to the memory subsystems that may be built from components that have orders of difference in performance and design complexity to read in the way that you think.

    However I do add the caveat that I'm not a cpu or memory designer so I could be talking a crock.

提交回复
热议问题