Question:
PERL IS INTERPRETER OR COMPILER?
1970-01-01 00:00:00 UTC
PERL IS INTERPRETER OR COMPILER?
Eight answers:
?
2016-12-18 21:05:36 UTC
Perl Compiler
?
2016-10-06 01:56:06 UTC
i visit grant a depiction from an older textbook. "INTERPRETERS "An interpereter is a language translator like a compiler. It differs from a compiler in that it executes the source application at present particularly than producing merchandise code it is carried out after translation is comprehensive. In theory, any programming language could be interpreted or compiled, yet an interpreter may be favorite to a compiler watching the language in use and the area decrease than which translation happens. as an occasion, problem-loose is a language it is many times interpreted than compiled. further, functional languages inclusive of LISP tend to be interpreted. Interpreters are many times utilized in educational and application progression circumstances, the place courses are probable to be translated and retranslated many cases. on the different hand, a comiler is favorite if velocity of execution is a regular attention, because of the fact that compiled code is forever quicker than interpretered source code, now and back via a ingredient of c4ca4238a0b92382dcc509a6f75849b0 or extra. Interpreters, even nevertheless, proportion many of their operations with compilers, and there is often translators that are hybrids, mendacity someplace between interpreters and compilers." [a million] don't be perplexed with some cutting-edge languagues. Java is before everything compiled to a language called byte code. This byte code is then translated. .internet is comparable in that it is compiled to a language it is then translated. oftentimes happening (commonly used, no longer mananged or comparable) C++ is compiled purely, the comparable as C.
?
2016-09-28 03:57:16 UTC
Perl Interpreter
Ratufa
2009-05-30 09:26:42 UTC
Perl is an interpreted language. When you execute a Perl program in the usual manner, the program does not get converted to machine code.



When people talk about a Perl program being "compiled", they usually mean the part of the execution process where the program gets converted into a parse tree, which the interpreter then runs.



There are some "backends" for the Perl interpreter that allow a program to be saved as bytecodes or even translated to C, which can then be compiled like any other C program. These backends are what the link you referenced were talking about.



See this link for a fairly complete discussion of this:



http://oreilly.com/catalog/pperl3/chapter/ch18.html
Ani
2009-05-30 01:02:05 UTC
Perl is a high-level, general-purpose, interpreted, dynamic programming language. Perl was originally developed by Larry Wall, a linguist working as a systems administrator for NASA, in 1987, as a general purpose Unix scripting language to make report processing easier.Perl borrows features from other programming languages including C, shell scripting (sh), AWK, and sed. The language provides powerful text processing facilities without the arbitrary data length limits of many contemporary Unix tools, facilitating easy manipulation of text files.
Derrick J
2009-05-30 01:00:56 UTC
PERL can refer to a number of things:

1. The language itself

2. The interpreter (which is the program that takes perl scripts and 'interprets' them to run them on your machine.



the perl compiler is part of the perl interpreter. Even though perl you can run a perl script without compiling like you would in C or Java, the script still gets compiled into binary executable code before being run.



The PERL compiler produces this binary executable as a file that can be executed, without the over head of doing the 'just in time' compile every time you run the script.
Fudge
2009-05-30 01:30:07 UTC
Traditionally it's interpreted , however, recently they might've added a compiler for it too , but not sure ...
2009-05-30 00:56:54 UTC
Neither, and both. Perl is a scripting language. There is a tool, called perl, intended to run programs written in the perl language.



"Compiled" languages are ones like C and C++, where you have to take the source code, compile it into an executable file, and THEN run it.



"Interpreted" languages, like Perl, PHP, and Ruby, are ones which do NOT require pre-compiling. They are generally compiled on-the-fly (which is what the perl command-line tool does) into opcodes, and then run. So, Perl is an interpreted language because a tool reads the source code and immediately runs it. Perl is a compiler because it has to compile that source code before it can be run while it's being interpreted.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...