每日 Harness 开源 · Source
返回本期 · Back to 2026-09-14

博客文章 · Blog Posts2026-09-14 · Monday, September 14, 2026

Why is the x86 undefined instruction called ud2? Why 2?

devblogs.microsoft.com原文 ↗

Why is the x86 undefined instruction called ud2? Why 2?
Raymond Chen 追溯 `ud2` 的命名:历史上的 `0F FF`、`0F B9` 被程序当作非法指令,后来分别追认为 `ud0`、`ud1`,正式的无参数两字节非法指令于是排到 `ud2`。旧编码还可能因跨页解码变成访问违规;`ud2` 的架构保证让编译器放在不可达路径时行为一致。
–浏览

评论 · Comments