hello members hope yo all doing good. this question really perturbs me. WHAT IS THE DIFFERENCE BETWEEN AN INTERPRETED LANGUAGE AND A COMPILED LANGUAGE | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

hello members hope yo all doing good. this question really perturbs me. WHAT IS THE DIFFERENCE BETWEEN AN INTERPRETED LANGUAGE AND A COMPILED LANGUAGE

24th Jun 2017, 7:59 PM
KASAIJA KENNETH
KASAIJA KENNETH - avatar
3 Answers
24th Jun 2017, 8:08 PM
Awele Omeligwe
Awele Omeligwe - avatar
+ 1
Interpreted language is like HTML where another program reads the code you typed in and then they do actions based on that what you had typed. Compiled language is a language​ where your program gets compiled into an EXE file that you can run without needing to use additional programs to assist.
24th Jun 2017, 8:20 PM
Limitless
Limitless - avatar
+ 1
for interpreted languages the programs are executed as you coded them. translation to machine (cpu) language is done during execution, therefore syntax errors will only then detected.Advantage is it can work on different cpu types. examples are classical BASIC, tcl/tk, perl. Compiled languages are typical translated to machine code in advance. Syntax errors are detected during compilation, thus at this type of error can't occur during runtime. In general they are faster in execution. Disadvantage: it is cpu dependent, the compiled executable is limited to one vpu arvhitecture. (Of course, the same source code might be compiled for several cpu architectures.) Typical languages are C, C++ (not Microsoft C++/CLR), Fortran, Pascal. And then there are compiled languages which are translated to a kind of machine independent intermediate code. This intermediate code is then interpreted during runtime in a virtual machine. This is a try to get the advantages of both worlds. But you need a matching virtual machine, it is restricted in direct machine interaction (by intend) and as some just in time compilation (or interpretation) is required often a bit slower than real machine code. Typical languages are Java and all .NET (C#, F#, VB.net, ...)
24th Jun 2017, 8:30 PM
Volker Milbrandt
Volker Milbrandt - avatar