Note. I do not mean some theoretical question that does not have any implementation, just languages that do not have both !!!!!
Nowadays, there is a c / C ++ interpreter (cint) and a python compiler (for python bytecode).
I understand that the simplest definition is that the compiler simply converts the code from language a to language b, and then you have a machine that starts it along with the input, while the interpreter is just something that requires input plus a code in a and runs it. And, using these definitions, if something has an interpreter or compiler, it is quite simple to get another one by immediately launching the output of the compiler or by inserting the compiler with the source code to get the interpreter.
Thus, ignoring those in which languages do not have both a compiler (which compiles the source code to B, preferably an intermediate language), and an interpreter that runs large pieces of code without compiling them?
Compiler vs. Interpreter
The interpreter translates some form of source code into the target representation, which it can immediately execute and evaluate. The structure of the interpreter is similar to the structure of the compiler, but the time taken to create the executable representation will vary depending on the amount of optimization. The following diagram shows one representation of the differences. Graphic Compiler Features:
* spends a lot of time analyzing and processing the program * the resulting executable is some form of machine- specific binary code * the computer hardware interprets (executes) the resulting code * program execution is fast
Interpreter Features:
* relatively little time is spent analyzing and processing the program * the resulting code is some sort of intermediate code * the resulting code is interpreted by another program * program execution is relatively slow
alt text http://web.cs.wpi.edu/~gpollice/cs544-f05/CourseNotes/maps/Class1/NotesImages/Topic42NotesImage1.jpg
, , , - .
. , , . Klingon, , .
? : . translates .
translates
, , (VHDL, Verilog,...) , . VHDL Verilog , (). Verilog VHDL ( FPGA) .
, , . langauges, , . "" , .
, " ".
(PLC) . , . .
!
:
, : , , , . , , "", -, ( ), , .
, , : , - ( ) , , , ?
, , , . , , , . , . .
. , , ( - ) ( ). - , (, - ), . " ", , , , . , , , , - , , , " ".
, , - , Turing-complete, .
, . , , . , (, , ).
, , , , , .. . , , , , :
RISC , , , . , , , 0s 1s.
APPLE ][, CALL -151. , : .
APPLE ][
CALL -151
HTML - , . , , , , DOM ..
, , (, BNF), , . .
, , , , - .
, .
- , - , java-- .net IL. , . , , nmemonics .
Source: https://habr.com/ru/post/1754371/More articles:how to avoid duplication of model code using JSF and JPA - jparecv/send on raw socket перед SSL wrap(), Python - pythonWhat is the most important database book or textbook that every database administrator should read? - sqlDjango - Reversion and South - How to update past versions when updating a model? - djangoWhich of these methods is most effective when I cross the list? - javaExtended TreeView Elements - wpfDefine a decimal (exact) key from the numeric keypad - javascriptRegular expression for checking length in email address - regexWCF: Are asynchronous calls safer? - securityJQuery plugin for reassigning a numeric keypad - javascriptAll Articles