back end mathworks compiler course – day 6 lexemes cfg tables symbols generator emitter assembler...
TRANSCRIPT
![Page 1: Back end MathWorks Compiler Course – Day 6 lexemes Cfg tables Symbols Generator Emitter Assembler semantic actions cpu instructions executable bits syntax](https://reader036.vdocument.in/reader036/viewer/2022072006/56649f445503460f94c64b55/html5/thumbnails/1.jpg)
• Back end
MathWorks Compiler Course – Day 6
lexemes
Cfg tables
Symbols
Generator
Emitter
Assembler
semantic actions
cpu instructions
executable bits
syntax tree
symbol table
hardware
![Page 2: Back end MathWorks Compiler Course – Day 6 lexemes Cfg tables Symbols Generator Emitter Assembler semantic actions cpu instructions executable bits syntax](https://reader036.vdocument.in/reader036/viewer/2022072006/56649f445503460f94c64b55/html5/thumbnails/2.jpg)
• Hardware– Memory (address modes)– real arithmetic (FPS)– integer arithmetic– testing (flags)– branching (self-relative)– faults & loops (MATLAB crash)
MathWorks Compiler Course – Day 6
![Page 3: Back end MathWorks Compiler Course – Day 6 lexemes Cfg tables Symbols Generator Emitter Assembler semantic actions cpu instructions executable bits syntax](https://reader036.vdocument.in/reader036/viewer/2022072006/56649f445503460f94c64b55/html5/thumbnails/3.jpg)
• Hardware
• C puns (in MEX)t = (unsigned int (*)(void*))code;
res = t(frame);
float d = *(float*)addr;
int i = *(int*)addr;
MathWorks Compiler Course – Day 6
![Page 4: Back end MathWorks Compiler Course – Day 6 lexemes Cfg tables Symbols Generator Emitter Assembler semantic actions cpu instructions executable bits syntax](https://reader036.vdocument.in/reader036/viewer/2022072006/56649f445503460f94c64b55/html5/thumbnails/4.jpg)
• Hardware
• C puns
• Runtime library– go– static jackets– >> makeRuntime
MathWorks Compiler Course – Day 6
![Page 5: Back end MathWorks Compiler Course – Day 6 lexemes Cfg tables Symbols Generator Emitter Assembler semantic actions cpu instructions executable bits syntax](https://reader036.vdocument.in/reader036/viewer/2022072006/56649f445503460f94c64b55/html5/thumbnails/5.jpg)
• Hardware
• C puns
• Runtime library
• Emulation– step forward/back– demo
MathWorks Compiler Course – Day 6