1 / 5

(C) identify the function and operation of compilers and interpreters

(C) identify the function and operation of compilers and interpreters. Anthony Delgado. complier.

fawzi
Télécharger la présentation

(C) identify the function and operation of compilers and interpreters

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. (C) identify the function and operation of compilers and interpreters Anthony Delgado

  2. complier • A compiler is a computer program(or set of programs) that transforms source code written in a programming language (the source language) into another computer language (the target language, often having a binary form known as object code). The most common reason for wanting to transform source code is to create an executable program. • The name "compiler" is primarily used for programs that translate source code from a high-level programming language to a lower level language (e.g., assembly language or machine code). If the compiled program can run on a computer whose CPU or operating system is different from the one on which the compiler runs, the compiler is known as a cross-compiler

  3. Interpreters • In computer science, an interpreter is a computer program that directly executes, i.e. performs, instructions written in a programming or scripting language, without previously batch-compiling them into machine language. An interpreter generally uses one of the following strategies for program execution: • parse the source code and perform its behavior directly • translate source code into some efficient intermediatrepresentation and immediately execute this • explicitly execute stored precompiled codemade by a compiler which is part of the interpreter system

  4. review • What is a compliers used for • Do interpreters pass directly or process • What part of system is interpreters • if there with a cpu what are compliers called • How do interpreters do there job

  5. Figure 5.1. Comparison of compiled and interpreted code. N.d. Infographic. .pasteurWeb. 16 Jan 2014. <http://www.pasteur.fr/formation/infobio/python/ch05s02.html>.

More Related