L1 Intro to Compilers

2016-03-29  本文已影响0人  薛家四少

Intro to Compilers

Compilers

Interpreters

FORTRAN 1

Structure of FORTRAN 1

  1. Lexical Analysis(词法分析)
  2. Parsing (语法分析)
  3. Semantic Analysis (语义分析)
  4. Optimization(优化)
  5. Code Generation

First step: recognize words.

smallest unit above letters

    This is a sentence.

Compilers perform many semantic checks besides variable bindings.

Optimization has no strong counterpart in English.

Automatically modify programs so that they

X = Y * 0 is the same as X = 0

Produces assembly code (usually)

A translation into another language

Compare Compiler
上一篇下一篇

猜你喜欢

热点阅读