Результаты (
английский) 2:
[копия]Скопировано!
Design: programming language can use special design to define and manipulate data structures and process control computing programming languages can be divided into compiled and interpreted
program is a compiled language with the help of the compiler of the special program is converted (compiled) into a set of instructions for the processor type (machine code ) and then written to the executable tether that can be run to perform as a standalone program. In other words, the compiler translates a program with high-breaker failure protection on nizkoyrovnevy language language understood by the processor.
If a program written in an interpreted language, the interpreter directly executes (interprets) its text without translation. While the program is still in the original language and can not be started without an interpreter. We can say that the computer, the interpreter processor machine code.
in short. compiler translates the program into machine language immediately and uemzhom, creating scrap a separate program, and the interpreter translates directly into machine language at runtime.
Separation of compiled and interpreted languages is somewhat arbitrary. Thus, for any traditionally compiled language, such as Pascal, we can write the interpreter. In addition, most modern "clean" language interpreters do not execute the design directly, and compile them into a high-level intermediate representation (eg,
to dereference variables and disclosure macros) to any interpritiruemogo language compiler can create -naprimer language Lisp, which was originally interpreted. can be compiled without any whatsoever limitation any number generated during program execution can also dynamically compiled at runtime.
As a rule, compiled programs are faster and do not need to perform additional programs, as has already been translated into machine language. However, each time the program you want to change the text to recompile it, which makes it difficult to develop. Also, a compiled program can only be executed on the same type of computers and, usually under the same operating system,
on which the compiler was designed to create an executable file for another type of machine requires a new compilation of interpreted languages have some specific additional features. In addition to these programs can be run immediately after a change that fits the design. In an interpreted language program can often be run on different types of machines and operating systems without any additional effort. But interpretable programs run noticeably slower than compiled, in addition, they can not be carried out without additional interpreter program
Some languages, for example, Java and C # are between compiled and interpreted. Namely, the program is compiled into machine language is not, as in a machine-independent code low byte code. Next, the bytecode is executed by the virtual machine. To execute bytecode interpretation generally used.
Although parts of it to accelerate the work program to be translated into machine code can be directly during the program by compiler technology "on the fly» (Just-in-time compilation, Jit) for Java byte code executes Java virtual machine (ava virtual C # Machine , JVM), for C # - Common language Runtime This approach is in some ways can be used as the pros interpreters and compilers should also mention the original Fort language (Forth), which is, as it were simultaneously interpreted and compiled. for C # - Common Language Runtime This approach is in some ways can be used as the pros interpreters and compilers. It Fort (Forth) also mention the original language, which is, as it were simultaneously interpreted and compiled for C # - Common Language Runtime This approach is in some ways can be used as the pros interpreters and compilers. It Fort (Forth) also mention the original language, which is, as it were simultaneously interpreted and compiled
переводится, пожалуйста, подождите..
