Compiler/Interpeter/Decompiler?
Warning: Extreme Newbie
I know what a compiler is, and I hope I am not wrong, but the program where you write the code. Is an interpeter the same as a compiler? If a compiler puts it all togethor, than a decompiler must take the source apart, right? And if so, what is the point of decompiling something?
Re: Compiler/Interpeter/Decompiler?
Quote:
I know what a compiler is, and I hope I am not wrong, but the program where you write the code.
A compiler is not the one where U write the code, but one which translates your source code into object code.
The editor in which you can write code, compile it, run it and debug it is usually called an integrated development environment. (like ide of vb, vc++, turboc etc). But you can write code in an ordinary text editor, save it and pass it onto a compiler as input file (compiler is a pgm which accepts one or more source files written in a pgmming language and produce the corresponding object code as output.)
A compiler compiles the source pgm as a whole, doing some optimisations, while interpreter translates it one line at a time. (so easier to correct errors), but is slow compared to a compiled pgm