Due to platform independence, a Java compiler will interpret Java source code into Java Byte Code and pass to the JVM, which will pass machine understandable code through to cpu. (clarification needed).A conventional compiler converts source code directly to machine code.(clarification needed).
in my personal point of view i would say a parser is more like "one-directional" "automatic" vs. an interpreter, the interpreter has more "intelligence"
C-compiler translates the C-source into Assembly or machine code. On the other hand, C-interpreter -- well, there is no such thing as C-interpreter.
A pseudo-instruction : A symbolic representation in a compiler or interpreter. An instruction : a simple statement in any language that defines a task or computation etc.
In Compiler there is no design word ,whereas in compiler design there is design word
Both compiler and interpreter are the language programs that translates source program into machine code or we can say object code. Both are used to find errors in source program.
in my personal point of view i would say a parser is more like "one-directional" "automatic" vs. an interpreter, the interpreter has more "intelligence"
What is difference between Compiler and DML Compiler
It is easy to tell: there is no interpreter for C and C++, they are compiled languages.
C-compiler translates the C-source into Assembly or machine code. On the other hand, C-interpreter -- well, there is no such thing as C-interpreter.
A pseudo-instruction : A symbolic representation in a compiler or interpreter. An instruction : a simple statement in any language that defines a task or computation etc.
A pseudo-instruction : A symbolic representation in a compiler or interpreter. An instruction : a simple statement in any language that defines a task or computation etc.
There are very few languages (e.g. old BASIC variants in hobby computers) that have both interpreter and compiler, so your question hardly makes sense. Simply pick a language, and use it.
In Compiler there is no design word ,whereas in compiler design there is design word
Both compiler and interpreter are the language programs that translates source program into machine code or we can say object code. Both are used to find errors in source program.
compiler is a software translator used in ProgrammingLanguage: C,C++, Java etc ). This used for to translate High level language to Machine independent language. Interpreter is used to translate source code to machine code by line by line.
A translator is written translation. And an interpreter is an oral translation.
# An interpreter translates from source code to machine code on-the-fly; a compiler does it all before the program is executed. # Compilers can spend a lot of time on analysis and optimization, allowing for (generally) better performance of code.