Presentation is loading. Please wait.

Presentation is loading. Please wait.

MathWorks Compiler Course – Day 7

Similar presentations


Presentation on theme: "MathWorks Compiler Course – Day 7"— Presentation transcript:

1 MathWorks Compiler Course – Day 7
Back end Cfg tables lexemes syntax tree Symbols symbol table Generator semantic actions Emitter cpu instructions Assembler executable bits hardware

2 MathWorks Compiler Course – Day 7
Emitter Expression Actions var(tok) expr0(rule, tok) expr1(rule, opd) expr2(rule, left, right)

3 MathWorks Compiler Course – Day 7
Emitter Expression Actions var(tok) expr0(rule, tok) expr1(rule, opd) expr2(rule, left, right) arithAbort(rule, tok) Assignment Actions store call

4 MathWorks Compiler Course – Day 7
Emitter Expression Actions Assignment Actions Control Actions guard end alt end if-fi end if-fi abort do-od begin do-od end

5 MathWorks Compiler Course – Day 7
Emitter Expression Actions Assignment Actions Control Actions Linkage prolog/epilog

6 MathWorks Compiler Course – Day 7
Emitter Expression Actions Assignment Actions Control Actions Linkage Operands Tags A L S M X R D F

7 MathWorks Compiler Course – Day 7
Emitter Expression Actions Assignment Actions Control Actions Linkage Operands Run Errors precompute message remember number bailout

8 MathWorks Compiler Course – Day 7
Back end Cfg tables lexemes syntax tree Symbols symbol table Generator semantic actions Emitter cpu instructions Assembler executable bits hardware

9 MathWorks Compiler Course – Day 7
Generator genWalk() stmtWalk(n) stmtWalk(n) (recursive) selectionWalk(n) altsWalk(n) iterationWalk(n) assignWalk(n) callWalk(n) exprWalk(n) (guard)

10 MathWorks Compiler Course – Day 7
Generator altsWalk(n) altsWalk(n) (recursive) altWalk(n) exprWalk(n) stmtWalk(n)

11 MathWorks Compiler Course – Day 7
Generator assignWalk(n) varsWalk(n) varsWalk(n) (recursive) exprsWalk(n) callWalk(n)

12 MathWorks Compiler Course – Day 7
Generator exprsWalk(n) exprsWalk(n) (recursive) exprWalk(n) exprWalk(n) (recursive)

13 MathWorks Compiler Course – Day 7
Generator assignWalk(n) varsWalk(n) varsWalk(n) (recursive) exprsWalk(n) callWalk(n)

14 MathWorks Compiler Course – Day 7
Generator exprsWalk(n) exprsWalk(n) (recursive) exprWalk(n) exprWalk(n) (recursive)


Download ppt "MathWorks Compiler Course – Day 7"

Similar presentations


Ads by Google