answersLogoWhite

0


Best Answer

Interpretive languages compile blocks of code into machine code, execute them, and then move onto the next block. The blocks may be as little as a single statement, but once each statement is executed, the machine code is lost. This means that functions must be recompiled every time they are called. Ultimately, performance suffers because every block must be interpreted before it can be executed. Moreover, the program must always be executed within the interpreter; you cannot create standalone programs.

Compiled languages pre-compile the entire program to produce a standalone machine code executable. As a result, compiled programs execute many times faster than interpretive languages.

C++ and Java are both compiled languages however Java programs are compiled to byte code rather than machine code. The byte code must then be interpreted by the Java virtual machine in order to execute. As a result of this interpretation, Java programs do not perform well compared to equivalent programs written in C++.

User Avatar

Wiki User

11y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

12y ago

Interpretation essentially requires each line of code to be converted into machine code and executed, one at a time. This means the program can only be run within a suitable interpreter -- it cannot produce standalone executables.

Compilation (and linking) produces machine code for the entire program, which can then be run without any further interpretation. The program is completely standalone.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the difference between interpretation and compilation in computer programming?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What has the author I Craig written?

I. Craig has written: 'Programming in Dylan' -- subject(s): Dylan (Computer program language) 'The interpretation of object-oriented programming languages' -- subject(s): Object-oriented programming (Computer science)


What is the difference between online and offline programming?

Online programming is programming that has to occur while the computer or other device is connected to the internet. Offline programming doe not require an internet connection.


What is the difference between declarative and imperative programming?

Imperative is how the computer should do something. Declarative is what you would like the computer to do.


What is the difference between java and internet?

The Internet is a world-wide computer network. Java is a computer programming language.


What is the difference between a bug and an error?

"Bug" means "error" in Computer Programming. So it means they're exactly the same.


What is the difference between coding and programming?

Coding is more general -- there are many kinds of codes and different reasons for them. However, when it comes to computer slang, there is no difference between coding and programming.


Difference between blank space and white space?

In computer programming, these two terms are interchangeable.


What is the difference between if conditions and if else condtion in computer programming with c?

The lack or presence of the else-part.


Difference of hardware and software?

Hardware is the equipment, everything on the computer that actually exists, everything you can see and touch. Software is the programs on the computer, it is the programming, the instructions which tell computer what to do.


What is the meaning of ABC in computer?

what is the meaning of ic in computer


How is computer programming used in computer programming?

Parallax is used in computer programming by using a computer and a USB connection. They have been popular in robotics because of their easiness to program.


Advantages of computer programming?

The advantages of computer programming is that it pays well since programming is a creative task. Computer programming helps human beings solve problems on a regular basis.