SLIDE 1
Translation Models
- Machine-dependent
– Generate Machine Code
- Directly
- Through Intermediate Code
- Machine-independent
Translation Models Machine-dependent Generate Machine Code - - PowerPoint PPT Presentation
Translation Models Machine-dependent Generate Machine Code Directly Through Intermediate Code Machine-independent Interpret the source code Generate intermediate code and then interpret the intermediate code Single
1. Choose S subset of L 2. Write a Compiler for S to run on M 3. Write a Compiler for L in S
S M M L S M L S M S M M L M M
1. Write a compiler in L in L that generate code for N 2. Compile the compiler produced in step 1 on the compiler of L on M L L N L M M L L N L M N L M N
L M I I M M