Content deleted Content added
No edit summary |
mNo edit summary |
||
Line 5:
{{anchor|1|2|4|8|16|256|4096|Page|Inpage}}<!-- parked anchors for common alignments/boundaries to improve incoming redirects -->
{{Use dmy dates|date=January 2020|cs1-dates=y}}
'''Data structure alignment'''
The [[Central processing unit|CPU]] in modern computer hardware performs reads and writes to memory most efficiently when the data is ''naturally aligned'', which generally means that the data's memory address is a multiple of the data size. For instance, in a 32-bit architecture, the data may be aligned if the data is stored in four consecutive bytes and the first byte lies on a 4-byte boundary.
''Data alignment''
Although data structure alignment is a fundamental issue for all modern computers, many computer languages and computer language implementations handle data alignment automatically. [[Ada (programming language)|Ada]],<ref>{{cite book
|