TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Portable Code: How To Check If A Machine Is 32 Bit Or 64 Bit

2 点作者 shantanugoel大约 16 年前
Writing portable code is very important but it is one of the aspects that most people neglect until it is too late to realize its importance. Till few years ago, most people writing code for personal computers were not worried about the data sizes on their machines. They didn’t even think whether the machines, on which their code would be running, would be 32 bit or 64 bit.

1 comment

jwilliams大约 16 年前
Not really sure how useful this is... even if it was practical to adapt datatypes at runtime, it would still be extremely painful. Surely just using portable types is vastly easier and straightforward.<p>(or am I missing something?)
评论 #511380 未加载