architecture - Confused about data allignment -


i'm trying head around why data alignment/padding necessary. wikipedia:

"when modern computer reads or writes memory address, in word sized chunks"

yet can use x86's movb instruction move data , fro @ byte resolution. missing here? thank clarification!

word aligned memory access faster byte aligned one. makes faster transfer large blocks of data. can address single byte, word read memory , internally reduced byte. makes access slower.


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -