compiler const assignment.docx - MULTIMEDIA UNIVERSITY OF KENYA UNIT COMPILER CONSTRUCTION SUBMITTED TO DR NGARI ASSIGNMENT DUE:15TH February 2019 1

compiler const assignment.docx - MULTIMEDIA UNIVERSITY OF...

This preview shows page 1 - 3 out of 5 pages.

MULTIMEDIA UNIVERSITY OF KENYA UNIT: COMPILER CONSTRUCTION SUBMITTED TO: DR NGARI ASSIGNMENT DUE :15 TH February 2019 1. Distinguish between a compiler and an interpreter; ensure full definitions are given. A compiler is a translator which transforms source language (high-level language) into object language (machine language)while an interpreter is a program which imitates the execution of programs written in a source language.
Image of page 1
Another difference between them is that a complier executes the whole program as a whole while an intepreter translates the program one statement at a time The table below shows further comparison between a compiler and an intepreter: BASIS FOR COMPARISON COMPILER INTERPRETER Input It takes an entire program at a time. It takes a single line of code or instruction at a time. Output It generates intermediate object code. It does not produce any intermediate object code. Working mechanism The compilation is done before execution. Compilation and execution take place simultaneously.
Image of page 2
Image of page 3

You've reached the end of your free preview.

Want to read all 5 pages?

  • Fall '16
  • Kituku

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern

Stuck? We have tutors online 24/7 who can help you get unstuck.
A+ icon
Ask Expert Tutors You can ask You can ask You can ask (will expire )
Answers in as fast as 15 minutes
A+ icon
Ask Expert Tutors