全部书籍

专业

应用 关于 Coach 登录 开始阅读

书籍暂未推出简体中文版——当前显示英文版。

Computer Science · 术语表

什么是 Jumping code, label generation?

又称: jumping code · label generation · back-patching

Definition 7.3 University Computer Science — Year 3 · 第 7 章 — Intermediate Code and Code Generation

The jumping code of a condition ee for two labels LtL_{\mathrm{t}} and LfL_{\mathrm{f}} is code that evaluates as much of ee as needed and then jumps to LtL_{\mathrm{t}} if ee is true and to LfL_{\mathrm{f}} if it is false. The labels are made before the code that jumps to them, with fresh numbers: this is label generation. A one-pass generator that emits machine words directly cannot name a label it has not placed yet; it emits the jump with an empty target, records it, and fills the target in when the label’s address is known, which is back-patching.

在原文中阅读 →