全部书籍

专业

应用 关于 Coach 登录 开始阅读

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

Computer Science · 术语表

什么是 Compiler phases?

又称: compiler phase · front end · back end

Definition 1.1 University Computer Science — Year 3 · 第 1 章 — Lexical Analysis

A compiler phase is one stage of a compiler: a function from one representation of the program to the next, which may reject the program with an error. The phases that depend on the source language and not on the target machine (cutting into tokens, parsing, checking names and types) form the front end; those that depend on the target machine and not on the source language (choosing instructions, assigning registers, laying out the stack frame) form the back end.

The phases of the Moor compiler, with what the statement looks like between two of them (ID and NUM stand for an identifier and a number token). The middle phases work on three-address code, which belongs to neither language; here the optimiser removes a useless copy, and the code generator keeps price, rate and total in registers.
The phases of the Moor compiler, with what the statement looks like between two of them (ID and NUM stand for an identifier and a number token). The middle phases work on three-address code, which belongs to neither language; here the optimiser removes a useless copy, and the code generator keeps price, rate and total in registers.
在原文中阅读 →