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
3 odpowiedzi
+ 6
See link related to this question below
https://www.codeproject.com/Articles/696764/Differences-between-compiled-and-Interpreted-Langu
+ 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.
+ 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, ...)