Pikuma

RSS: https://pikuma.com/feed
用视频书与课程学习计算机科学、编程与数学。

C 语言的灵活整型尺寸并非设计失误

C 的 int 从来不是固定 32 位。作者解释 C 选择灵活整型尺寸的根本原因是可移植性:早期 12、18、36、60 位机器并存,C 必须让 int 大小跟随机器字长,而不是假设 32 位。 文章梳理了历史背景(PDP-11、VAX、PDP-10 等)和语言设计的取舍,反驳了"int 应为 32 位"的常见误解,给出清晰的工程判断:C 的"缺陷"其实是其可移植策略的历史产物。
评论点赞收藏5 天前

回顾90年代:Intel Pentium MMX的SIMD编程

1997年Intel在Pentium MMX上引入MMX指令集,首次将SIMD带入主流PC。8个64位寄存器复用x87浮点栈,整数SIMD和浮点运算互斥,用emms指令切换回来。 MMX能一条指令同时做8次字节加法,还支持饱和算术避免像素溢出。AMD后来推出3DNow!支持浮点SIMD,但Intel 1999年推出SSE直接终结了竞争。 2000年SSE2用128位XMM寄存器取代MMX。
评论点赞收藏48 天前

Fundamental Math for Game Developers

Let's review the most important math topics used by game devs, reflect about math education, and discuss techniques that can be used to improve the way we learn new math topics.
评论点赞收藏626 天前

DOS/4GW and Protected Mode

MS-DOS game programmers had to deal with several limitations. This article goes over some of these obstacles and explores how we used the DOS/4GW extender & protected mode to unleash the power of 32-b...
评论点赞收藏1753 天前

登录芦苇

登录后关注作者、收藏内容和参与讨论。