Computers can directly run only binary machine code. When people write programs, that program text must be processed into machine code before it can be run.
Compilers and assemblers convert the source code into machine code. Compilers take a high-level language such as C or C++ and convert it, while assemblers take a much lower level language called "assembly language" where there is one language statement per machine instruction. High-level languages can be recompiled for different kinds of processors (like Intel or ARM CPUs) but assembly language is closely tied to the kind of processor. Some compilers actually compile high-level code into assembly language and then run that through an assembler to get machine code.
Interpreters are a different animal. They take either source code or partially compiled code and run it in the interpreter itself, rather than creating machine code. In other words, they directly "interpret" the program. Languages such as Perl, Python, and Ruby are interpreted from the source code. For Java and C#, the source code is compiled into an intermediate code that is easy to interpret.
The error messages may be frustrating as they show that your program is not perfect... Or I do not know what risk you mean...
No, a C program cant work without an interpreter or compiler or assembler as the code written in the program is not understood directly by the computer so it needs any of the above translator program to make the program understandable to the computer.-Shruti Jain
Sort of joke (or figurative speech) of your teacher, the meaning is: programs with similar/related functionality. They are: interpreter, assembler.
I do not know, ask your teacher.Why, for example Python, PHP, Pearl and JavaScript work without compiler; C, Pascal, Cobol and Fortan work without interpreter.None work "without assembler compiler and interpreter" so the question cannot be answered as asked because there is no answer.If we want to write a program without an assembler, compiler or interpreter; it is an easy answer. You hand assemble, that is where you manually enter the machine code. In the early days this was the only way to program a computer. Having done some hand assembly I have to things to say about it.1) it is not as hard as it might appear to be but it is painfully slow to do.2) why bother when there are excellent compilers available.
Language processors are language translation software like assembler, interpreter and compiler
Assembler Interpreter Compiler
The error messages may be frustrating as they show that your program is not perfect... Or I do not know what risk you mean...
there are three types of language processors namely interpreter,compiler and assembler
Language processors are language translation software like assembler, interpreter and compiler
there are three types of language processors namely interpreter,compiler and assembler
No, a C program cant work without an interpreter or compiler or assembler as the code written in the program is not understood directly by the computer so it needs any of the above translator program to make the program understandable to the computer.-Shruti Jain
basically compiler is that convert an object code in to machine code and machine code is directly understood by a computer. assembler and interpreter are the examples of compilers. assembler is used to convert object code of assmebly language in machine code.
Sort of joke (or figurative speech) of your teacher, the meaning is: programs with similar/related functionality. They are: interpreter, assembler.
First cousin twice removed is an interpreter, second cousin is an assembler. Its siblings are a text-editor, a linker and a debugger.
Both are use to convert high level languages into machine language
Not really. You need some program to interpret your source code. There is the "assembler", but that can be thought of as a simpler version of a compiler - simpler, because the assembler basically just converts the source code instructions one-to-one to machine instructions.
I do not know, ask your teacher.Why, for example Python, PHP, Pearl and JavaScript work without compiler; C, Pascal, Cobol and Fortan work without interpreter.None work "without assembler compiler and interpreter" so the question cannot be answered as asked because there is no answer.If we want to write a program without an assembler, compiler or interpreter; it is an easy answer. You hand assemble, that is where you manually enter the machine code. In the early days this was the only way to program a computer. Having done some hand assembly I have to things to say about it.1) it is not as hard as it might appear to be but it is painfully slow to do.2) why bother when there are excellent compilers available.