CS61C@UCB | Computer Architecture

HD: Memo Hierarchy

Untitled

Untitled

SW: Process, Thread, Program Memory

Untitled

Here “a program” means a running C program (with the main function as the entrance)

Home | CS 61C Fall 2022

Compiler Stages * 5

  1. lexical analysis: source code → tokens
  2. syntax analysis: analyzed tokens structures → AST (Abstract Syntax Tree)
  3. semantic analysis
  4. intermediate code generation
  5. code optimization & code generation

G++ Example: GCC Compilation Process

GCC and Make - A Tutorial on how to compile, link and build C/C++ applications

Untitled

library linking