TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Data alignment: Why is it so important?

2 pointsby yogrishover 10 years ago

2 comments

MichaelCrawfordover 10 years ago
&quot;Writing Cross-Platform Software: Getting Started&quot; is largely about alignment:<p><a href="http://www.warplife.com/tips/code/portable/getting-started/" rel="nofollow">http:&#x2F;&#x2F;www.warplife.com&#x2F;tips&#x2F;code&#x2F;portable&#x2F;getting-started&#x2F;</a><p>For years it was the top hit for &quot;cross-platform software development&quot;. After a while it wasn&#x27;t anymore. Eventually I looked into why; I found dozens of articles on the same topic, all with the term &quot;getting started&quot; in their titles.<p>Some people would be angry. I was very pleased. I don&#x27;t really want credit for my work; what I want is for problems to go away.
MichaelCrawfordover 10 years ago
It&#x27;s not that data really _has_ to be aligned.<p>It&#x27;s that computers are easier and cheaper to design and manufacture if they require data alignment.<p>Consider that it would be straightforward for today&#x27;s 64-bit CPUs to permit 64-bit values to have one-byte alignment. There&#x27;s all kinds of ways to implement that in hardware and software, but to do so requires extra circuitry, that would require larger silicon dies, there would be a greater failure rate at the fab and so on.