首页 > 其他 > 详细

01.编译器结构

时间:2019-09-29 12:39:46      阅读:56      评论:0      收藏:0      [点我收藏+]

Structure of a Compiler

1.Lexical Analysis - 词法分析

divides program text into words or tokens

first step: recognize words

  • Smallest unit ablove letters

2.Parsing - 语法分析

diagramming sentences - 图解句子结构

3.Semantic Analysis

  • compilers perform limited semantic analysis to catch inconsistencies
  • compilers perform many semantic checks besides variable bindings

4.Optimization

has no strong counterpart in English

  • But a little bit like editing

Automatically modify programs so that they

  • Run faster
  • Use less memory

5.Code Genaration

produces assembly code(usually)

A translation into another language

  • Analogous to human translation

01.编译器结构

原文:https://www.cnblogs.com/HeCG95/p/11606832.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!