Compilers (coursera): Difference between revisions

From Adam Colton
Jump to navigation Jump to search
Created page with "From https://class.coursera.org/compilers/lecture/preview == Video Lectures == === Intro === ==== 01 ==== Compiler and interpreter. The interpreter takes the program and som..."
 
No edit summary
Line 15: Line 15:
*optimization
*optimization
*code generation
*code generation
==== 02 ====
Lexing breaks input into tokens. Parsing produces a tree. Semantic analysis checks that the program is correct. Optimization makes it run faster and use less memory, or any number of resource balancing. Code generation produces code, generally machine code.

Revision as of 02:57, 15 September 2015

From https://class.coursera.org/compilers/lecture/preview

Video Lectures

Intro

01

Compiler and interpreter.

The interpreter takes the program and some data produces output. This would be scripting.

A compiler takes the program and produces and executable. This executable can be run on the data.

  • lexical analysis
  • parsing
  • semantic analysis
  • optimization
  • code generation

02

Lexing breaks input into tokens. Parsing produces a tree. Semantic analysis checks that the program is correct. Optimization makes it run faster and use less memory, or any number of resource balancing. Code generation produces code, generally machine code.