C Assignments.docx

Answer 1 please find the difference between compiler

Info icon This preview shows pages 21–23. Sign up to view the full content.

Answer 1: Please find the difference between compiler and interpreter below: 1. A compiler is a translator which transforms source language (high-level language) into object language (machine language) . In contrast with a compiler, an interpreter is a program which imitates the execution of programs written in a source language. 2. Compiler converts the whole program in one go on the other hand Interpreter converts the program by taking a single line at a time. 3. Compiler generates intermediate object code on the other hand Interpreter does not produce any intermediate object code. 4. In case of Compiler the compilation is done before execution where as in case of Interpreter Compilation and execution take place simultaneously.
Image of page 21

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

5. Compiler speed is faster than Interpreter. 6. In case of Compiler Memory requirement is more due to the creation of object code where as in case of Interpreter It requires less memory as it does not create intermediate object code.
Image of page 22
Image of page 23
This is the end of the preview. Sign up to access the rest of the document.
  • Fall '13
  • Anand

{[ snackBarMessage ]}

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