In which languages ​​is there no translator or compiler?

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?

+3
source share
11 answers
  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

+2

, , , - .

+9

. , , . Klingon, , .

+6

? : . translates .

+5

, , (VHDL, Verilog,...) , . VHDL Verilog , (). Verilog VHDL ( FPGA) .

, , . langauges, , . "" , .

, " ".

+3

(PLC) . , . .

!

:

+2

, : , , , . , , "", -, ( ), , .

, , : , - ( ) , , , ?

, , , . , , , . , . .

. , , ( - ) ( ). - , (, - ), . " ", , , , . , , , , - , , , " ".

, , - , Turing-complete, .

, . , , . , (, , ).

, , , , , .. . , , , , :

+1

RISC , , , . , , , 0s 1s.

0

APPLE ][, CALL -151. , : .

0

HTML - , . , , , , DOM ..

, , (, BNF), , . .

, , , , - .

, .

0

- , - , java-- .net IL. , . , , nmemonics .

-1

Source: https://habr.com/ru/post/1754371/


All Articles