What’s the difference between an integer and a pointer? (201 / 整数和指针有什么区别?(2018 年)

📰 2026-11-24 00:00 更新

🔸 What’s the difference between an integer and a pointer? (2018) / 整数和指针有什么区别?(2018 年)

🔗 What’s the difference between an integer and a pointer? (2018)
🔥 42 points

原文:
(This piece is an alternate introduction and advertisement for a soon-to-be-published research paper.) In an assembly language we typically don’t have to worry very much about the distinction between pointers and integers. Some instructions happen to generate addresses whereas others behave arithmetically, but underneath there’s a single data type: bitvectors. At the opposite end of the PL spectrum, a high-level language won’t offer opportunities for pointer/integer confusion because the abst…

译文:
(本文是一篇即将发表的研究论文的备选导言和宣传文。)在汇编语言中,我们通常不必过于担心指针和整数之间的区别。有些指令碰巧会生成地址,而另一些指令则表现为算术运算,但其背后只有一个数据类型:位向量。在编程语言谱系的另一端,高级语言不会提供 因为抽象……,所以指针/整数混淆。


自动更新 · 正文抓取 · 双语翻译

Leave a Comment