Explore BrainMass
Share

Interpreted Vs Compiled Code

This content was STOLEN from BrainMass.com - View the original, and get the already-completed solution here!

Interpreted code executes much more slowly than compiled code, yet several systems use them extensively. The most well known are Visual Basic (it has two modes: interpreter mode and compiler mode), JavaScript and the special case of interpretation of Java programs. Discuss the merits and weaknesses of interpreting, as opposed to compiling, and explain when and why they are used.

© BrainMass Inc. brainmass.com December 20, 2018, 1:01 am ad1c9bdddf
https://brainmass.com/computer-science/computer-system-implementation/interpreted-vs-compiled-code-172347

Solution Preview

The solution is attached below.

Interpreted code executes much more slowly than compiled code, yet several systems use them extensively. The most well known are Visual Basic (it has two modes: interpreter mode and compiler mode), JavaScript and the special case of interpretation of Java programs. Discuss the merits and weaknesses of interpreting, as opposed to compiling, and explain when and why they are used.

Interpreted Vs Compiled Code

An Interpreter is a program that implements or simulates a virtual machine using the base set of instructions of a programming language as its machine language (Pasteur, 2005).
A Compiler is a program that translates code of a programming language in machine code, also called object code. The object code can be executed directly on the machine where it was compiled. So using a compiler separates translation and execution of a program. In contrast of an interpreted program the source code is translated only once (Pasteur, 2005).
The above definitions of compiled and interpreted code indicate some of the advantages of both compilers and ...

Solution Summary

This solution examines the reasons behind using interpreters, even though interpreted code works slower in comparison to compiled code.

$2.19