answersLogoWhite

0


Best Answer

A compiled language is written and then run through a compiler which checks its syntax and compresses it into a binary executable. Since an interpreted language is not compiled, it must be checked for errors at run-time, which makes it quite a bit slower than a compiled language (like C or Java). Perl is an example of an interpreted language. Remember, though, that just because a language is interpreted doesn't necessarily mean it is not full-featured, or simplistic. Perl can get very complex and very cryptic, very quickly.

User Avatar

Wiki User

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

Wiki User

14y ago

Interpretive Basic executes as is. When the program is ran each instruction is looked at, evaluated, and then executed by the interpreter. Compiled Basis on the other hand, is a set of machine instructions that were created from the Basic source code by the compiler. Being in machine code makes the compiled code run 10-15 times faster.

This answer is:
User Avatar

User Avatar

Wiki User

11y ago

A compiled computer language outputs a program file that is directly understandable by the CPU in a computer and is ready to be run. It is in what is called binary format, is not readable by (most) humans, but is directly understood by the computer.

An interpreted computer language generally outputs a program in a manner that is not directly understood by the computer CPU. It must be turned into machine readable binary (compiled) when you run it. The file is often human readable and understandable, but is not understood by the computer.

A good way to separate a compiled language from an interpreted language is to look at what happens to the source code and how that source code is turned into a running program.

In a compiled language, the source code files are run through a compiler ONCE, and outputs a single fixed "binary". Typically, this binary is in the machine code of the architecture the compiler is on, but it may also be in another architecture's machine code (for "cross-compilers"), or even in a synthetic architecture (as in the case with bytecodes, as typical for Java or Python). That binary can then be directly run on any compatible platform. The key here is that the conversion to a "runnable" format is done only once, and that the only thing needed to run the program on a suitable platform is the binary. The source code and compiler only need to be available when the binary is originally being created; afterwards, they aren't needed.

For an interpreted language, each and every time the program is run, the interpreter has to parse the source code files, and then creates an internal representation of the program. The interpreter itself decides how the source code should execute. After a run, there is nothing left except the source code, so any optimizations that the interpreter makes during the run are lost, and will have to be redone the next time the program is run. The major distinction here is that in order for an interpreted program to run, BOTH the source code AND the interpreter must be present, each and every time the program is to be run.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the difference between compiled language and interpreted language?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

What is the difference between interpreted and parsed?

Interpreted means - normally - the code is interpreted at run-time, while parsed (actually, it's "compiled") means the code is translated to a native object file at compile-time, and then executed. Compiled code is usually faster, also.


What is the Difference between verilog and vhdl language?

C is a high level language that is compiled into machine language for specific system. The system implements some sort of state machine that can process the compiled machine language. In VHDL you have to design the statemachine itself. Furthermore VHDL is compiled into logic primitives that could be built by logic gates which itself could be realized with transistors. C is a programming language. VHDL is a hardware description language.


Difference between high level language and script language?

There is no real difference; a scripting language is a programming language like any other. We use the term script to infer a programming language that does not need to be compiled to a lower-level code before running. Generally speaking, a scripting language is usually a high-level, interpreted programming language.


What is difference between compiled code and uncompiled code?

Probably that one is compile and the other isn't. - A programmer writes a computer program in a programming language that is more or less readable - at least to the programmer. This is called the "source code". This is then converted (compiled) into the so-called "machine language". The machine language can't be read by a human, unless a lot of effort is devoted to decoding it - but it is what the computer is designed to run.


Give an example of a compiler?

A programming language can be made into a working program either by Interpretation or compilation. There isn't a Compiler and an Interpreter language. But any code any be made into a program by compiling it using an Interpreter (checks a line of your code at a time and stops at errors) or compiler (checks the entire code at a time and displays all errors at the end).As the Answer above states any language can be Interpreted (the program is executed one line at a time, and errors are reported when and if they occur) and any language can be compiled (the whole program is rendered as a single executable file, and run in one go).But some languages are usually interpreted (though they may sometimes be compiled) and some languages are usually compiled (though they may be sometimes interpreted).An interpreted language is more easily debugged (and errors will usually be less disastrous). A compiled language runs faster (and the executable file will be smaller and more portable).So interpreted languages tend to include languages used for teaching and also languages used for robotic control (when you drive robots you will often want them to do things one step at a time).BASIC is a teaching language, it is usually interpreted. FORTH (for radio telescopes) and LOGO (for floor crawlers) are other languages which are usually interpreted, since they are robotic.Languages which are used for commercial programming will nearly always be compiled. C, C++, C# are nearly always compiled, and so is Pascal and all its derivatives (Oberon, Delphi &c.).

Related questions

What is the difference between interpreted and parsed?

Interpreted means - normally - the code is interpreted at run-time, while parsed (actually, it's "compiled") means the code is translated to a native object file at compile-time, and then executed. Compiled code is usually faster, also.


Whats the difference between a net programming language and a normal one?

A .Net programming language is compiled not into machine language but "IL", or "Intermediate Language." This "IL" is then run against the .Net runtime and is "Just In Time" compiled into machine language to run the actual operations. Contrast that with a "Normal" one, where the compiler turns the code into the machine language of the target instruction set.


What and the Difference Between ASP.NET and MVC?

Asp.net system is a part of a .net platform for building, deploying and running web applications. We can build up a web application by using both Asp.Net Web Form and Asp.Net MVC. In this article, I will uncover the principal difference between Asp.Net Web Form and Asp.Net MVC.We will discuss some important differences that will help you make a right choice between both of them. Let's take a look each of the differences in more detail. Difference between Asp.Net MVC and Web Forms:Our Company: Binary Informatics


What is the Difference between verilog and vhdl language?

C is a high level language that is compiled into machine language for specific system. The system implements some sort of state machine that can process the compiled machine language. In VHDL you have to design the statemachine itself. Furthermore VHDL is compiled into logic primitives that could be built by logic gates which itself could be realized with transistors. C is a programming language. VHDL is a hardware description language.


Difference between high level language and script language?

There is no real difference; a scripting language is a programming language like any other. We use the term script to infer a programming language that does not need to be compiled to a lower-level code before running. Generally speaking, a scripting language is usually a high-level, interpreted programming language.


Why is PHP considered a scripting language instead of programming?

The difference between "scripting" and "programming" is largely one of semantics; they're essentially the same thing. A purist is more likely to call writing in a usually interpreted language (such as PHP) "scripting" and writing in a usually compiled language (such as C) "programming". But either way, you're writing a set of instructions for the computer to follow, and some "scripts" can be as (or more) complicated than many "programs."


WHAT IS THE DIFFERENCE BETWEEN LANGUAGE AND COMMUNICATION I NEED RARE ANSWERS ONLY?

what is the difference between speech,language and communication??There is a huge difference between language and communication


What is the difference between static and dynamic programming?

in static programming properties, methods and object have to be declared first, while in dynamic programming they can be created at runtime. This is usually due to the fact that the dynamic programming language is an interpreted language.


What is difference between compiled code and uncompiled code?

Probably that one is compile and the other isn't. - A programmer writes a computer program in a programming language that is more or less readable - at least to the programmer. This is called the "source code". This is then converted (compiled) into the so-called "machine language". The machine language can't be read by a human, unless a lot of effort is devoted to decoding it - but it is what the computer is designed to run.


What is the difference between a baloch and brohi?

there is between language


What are the differences between urdu and English language?

wht is the basic difference between English language with urdu language


What is the difference between ASP.net and ASP?

The main difference between ASP and ASP.Net is that ASP is interpreted whereas, ASP.NET is compiled. This implies that since ASP uses VBScript; therefore, when an ASP page is executed, it is interpreted. On the other hand, ASP.NET uses.NET languages, such as C# and VB.NET, which are compiled to Microsoft Intermediate Language. Below some other difference are given. 1. Classic ASP uses a technology called ADO to connect and work with databases. ASP.NET uses the ADO.NET technology. 2. ASP has Mixed HTML and coding logic where in asp.net html and coding part are separated by code behind files. 3. ASP.NET purely object oriented whereas ASP is partially object oriented. 4. For ASP No in-built support for XML whereas in ASP.NET full XML Support for easy data exchange. I think above details help you a lot. I hosted my website at Asp.net hosting of Mywindowshosting.com.