Question by vishal sinha: What is the difference between compiler,interpreter and assembler?
hat is the difference between compiler,interpreter and assembler
Answer by just “JR”
A compiler takes a text file written in a programming language, and converts it into binary code that a processor can understand: it makes an “.exe” file. You compile only once, then always run the “exe” file.
Borland Turbo C is a compiler: you write in C in a text file, then you compile to get and exe file.
An interpreter does the same, BUT in real time: each time you run the code, it is “compiled”, line by line: Basic is an interpreter.
An assembler is similar, in the way that, instead of taking a plain text file, ie in C, it takes a code written in Assembler Mnemonics, and convert it into binaries.
All “executable” files are in binaries (just 1’s and 0’s) – maybe viewed in hex (0x12de…)
Know better? Leave your own answer in the comments!