9 Answers
New Answer9 Answers
New AnswerA compiler translates code in a new file, then the new file may be used everywhere An interpreter translates code at running time You should have an interpreter to run interpreted languages. You don't need any more than the compiled file to run compiled lamguages
An assembler is basically a compiler which compiles assembly code. As for the differences between a compiler and an interpreter, you may refer to this link. https://www.programiz.com/article/difference-compiler-interpreter
Those three things (TRANSLATORS) exist simply because a Computer can only understand its own Machine Language... 1. Assemblers translate a computer program written in an Assembly Language into the Machine Language... 2. Interpreters / Compilers translate a computer program written in an High Level Programming Language into the Machine Language... ^-^
If you wanted to know the difference, why didn't you look up the difference? I don't think you want to know bad enough.
Compilers -> Programming Languages like C++ Interpreters -> Scripting Languages like Python or PHP
Php is interpreted by the server, all web hostings have php support If you are using php without web hosting you should download a php interpreter About Python... I suppose it's interpreted by a Python interpreted. I think I heard python interpreter also supports other languages; I'm not sure
Hatsy is so much nicer than me. That's why I love them. <3 Brings balance to the force.
Sololearn Inc.
535 Mission Street, Suite 1591Send us a message