Data structure alignment: Difference between revisions

Content deleted Content added
Wiarthurhu (talk | contribs)
restore porting examples
Wiarthurhu (talk | contribs)
Line 36:
and [[PowerPC]] for [[NEC]] and [[IBM]]. Since the software was not written with such restrictions
in mind, designers had to set a bit in the O/S to enable non-aligned data.
However since this bit was masked with other flags which were used elsewhere, it was impossible to
keep the O/S in a state from faulting on non-aligned data. Both platforms ulimately
failed as platforms for hosting Windows applications. This small detail may be
one reason for the continued dominance of the x86 architecture over rivals.
 
 
==Typical aligment of C structs on x86==