Three Address Statement
Example Kenny Jingga Quiz
- mov C, , T1
(initializing array X)
- mul i, 8, T2
(declare the index with size of double)
- mov T1[T2], , T3
(X[i])
- param T3
(declare as paramater)
- add p, 1, T4
(p+1)
- param T4
(declare as paramater)
- mul q, 2, T5
(q*2)
- sub T5, 8, T6
(...-8)
- param T6
(declare as paramater)
- call f, 3, T7
(call function f with 3 parameters and store into T7)
- div T7, 2, T8
(.../2)
- mul 5, T8, T9
(5*...)
- mov T9, , C
(C = ...)
- ask micko n farrel for quiz answer
Status: #idea
Tags: compilation-techniques > Final ExamCompilation Techniques NotesMid Exam
RE to DFA
RE to E-NFA to DFA
Context Free Grammar
Top down parsing
Final Exam
Bottom Up Parsing
Directed Acyclic Graph
TAC, Triples, Quadriples
Intermediate Code Generator
Code Generator
Annotated Parse Tree
Three Address Statement
resources:
https://www.youtube.com/watch?v=6yRB6dszSUo&ab_channel=HIMTIBINUS
* [x] watch all alvina aulia vids
* [x] watch responsi
(after OS)
* [ ] try example questions from kenny
* [ ] try example questions from others
* [ ] practice weak