compilation_interpretation

compilation_interpretation - COP4020 Programming Languages...

Info iconThis preview shows pages 1–8. Sign up to view the full content.

View Full Document Right Arrow Icon
COP4020 Programming Languages Compilation and Interpretation Prof. Xin Yuan
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
COP4020 Spring 2012 2 02/20/12 Overview Compilation and interpretation Virtual machines Static linking and dynamic linking Compiler in action (g++) Integrated development environments
Background image of page 2
Compilation and interpretation A program written in a high level language can run in two ways Compiled into a program in the native machine language and then run on the target machine Directly interpreted and the execution is simulated within an interpreter How is a C++ program executed on linprog? How is a python program executed? In general, which approach is more efficient? COP4020 Spring 2012 3 02/20/12
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
COP4020 Spring 2012 4 02/20/12 Compilation Compilation is the conceptual process of translating source code into a CPU-executable binary target code Compiler runs on the same platform X as the target code Target Program Compiler Source Program Target Program Input Output Run on X Compile on X Debug on X
Background image of page 4
COP4020 Spring 2012 5 02/20/12 Cross Compilation Compiler runs on platform X , target code runs on platform Y Target Program Cross Compiler Source Program Target Program Input Output Run on Y Compile on X Copy to Y Debug on X (= emulate Y )
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
COP4020 Spring 2012 6 02/20/12 Interpretation Interpretation is the conceptual process of running high- level code by an interpreter Interpreter Source Program Input Output
Background image of page 6
COP4020 Spring 2012 7 02/20/12 Compilers versus Interpreters
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 8
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 02/20/2012 for the course COP 4020 taught by Professor Engelen during the Spring '11 term at FSU.

Page1 / 19

compilation_interpretation - COP4020 Programming Languages...

This preview shows document pages 1 - 8. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online