answersLogoWhite

0

An interpreter is a computer program that translates a high-level computer program into machine code while it is executing. As a result of this runtime interpretation, an interpreted program executes more slowly and consumes more resources than an equivalent standalone machine code executable would. To create standalone machine executables from high-level language sources you require a compiler and linker. Alternatively, you can write the program in low-level assembly language and use an assembler to create the executable, however high-level languages are easier to work with and can more easily produce executable code that is as efficient if not more efficient than is possible with low-level assembly language.

User Avatar

Wiki User

7y ago

Still curious? Ask our experts.

Chat with our AI personalities

BlakeBlake
As your older brother, I've been where you are—maybe not exactly, but close enough.
Chat with Blake
MaxineMaxine
I respect you enough to keep it real.
Chat with Maxine
SteveSteve
Knowledge is a journey, you know? We'll get there.
Chat with Steve
More answers

One of the ways in which you can classify a programming language is whether it is compiled or interpreted. After typing up the code for a program in a compiled langauge, a program called a compiler is used to turn the code into a binary, or executable file. In windows, these are files that end in .exe on macs, these are files that end in .app. For an interpretted language, after typing up the code and saving it, one can click on the file and run it immeadiately since there will be an interpreter program running in the backround that essentially compiles it in real time.

If you want to edit a program written in a compiled langauge, you have to change the source code, then compile it again. If you want to do the same in an interpreted language, you only have to change the source code, then run the program again.

A few popular examples of interpreted languages are Java, Python, and Ruby.

User Avatar

Wiki User

15y ago
User Avatar

They are systems software.

They are systems software.

They are systems software.

They are systems software.

They are systems software.

They are systems software.

They are systems software.

They are systems software.

They are systems software.

They are systems software.

They are systems software.

User Avatar

Wiki User

12y ago
User Avatar

Yes, an interpreter is one of the types of translator software.

Yes, an interpreter is one of the types of translator software.

Yes, an interpreter is one of the types of translator software.

Yes, an interpreter is one of the types of translator software.

Yes, an interpreter is one of the types of translator software.

Yes, an interpreter is one of the types of translator software.

Yes, an interpreter is one of the types of translator software.

Yes, an interpreter is one of the types of translator software.

Yes, an interpreter is one of the types of translator software.

Yes, an interpreter is one of the types of translator software.

Yes, an interpreter is one of the types of translator software.

User Avatar

Wiki User

12y ago
User Avatar

Interpreted code is typically portable so there is no need to rewrite code to suit different architectures and platforms. Also, interpreted code can be executed immediately; there is no need to compile the code. This also makes it possible to edit the code while it is executing.

The downside of interpretation is that execution speed is many times slower than that of native machine code. In addition, resource consumption will be far higher because the interpreter must be memory resident in order to execute the interpreted code.

User Avatar

Wiki User

8y ago
User Avatar

A programming language interpreter translates high-level source code into machine code while the high-level code is executing, much like a human interpreter translates for someone while they are speaking.

Interpretation differs from compilation in that a compiler translates high-level source code into a lower-level language such that the resultant code is saved. Compilers typically translate the source code directly into a machine code executable file which can then be run without any further translation. However, languages such as Java use a compiler to convert the high-level Java source into Java byte code, the native language of the Java virtual machine. The compiled code is then interpreted by the Java virtual machine to produce the required machine code.

Given that interpreted languages require a runtime (the interpreter) in order to execute, interpreted code uses more resources and executes very much slower than compiled machine code.

User Avatar

Wiki User

7y ago
User Avatar

complier is d 1 whch converts the whole program together into m/c language

whereas interpreter cnverts it line by line.....

User Avatar

Wiki User

15y ago
User Avatar

Yes, an interpreter is one of the types of translator software.

User Avatar

Wiki User

12y ago
User Avatar

They are systems software.

User Avatar

Wiki User

12y ago
User Avatar

Add your answer:

Earn +20 pts
Q: What are the function of an interpreter and a compiler?
Write your answer...
Submit
Still have questions?
magnify glass
imp