C++/compiler of C++
Expert: vijayan - 2/3/2009
QuestionQUESTION: what is the compiler of C++ language? does C++ uses any interpreter also?
is the compiler and interpreter of C same as that of C++?
ANSWER: > what is the compiler of C++ language?
see:
http://en.wikipedia.org/wiki/Compiler
C++ is a statically typed, free-form, multi-paradigm, compiled language where compilation creates machine code for a target machine hardware.
> does C++ uses any interpreter also?
no. C++ is not interpreted. but both C and C++ have a preprocessor phase as the first part of the translation.
see:
http://en.wikipedia.org/wiki/C_preprocessor
> is the compiler and interpreter of C same as that of C++?
the preprocesor is the same, the compilers are technically different.
however, most C++ compilers would can also compile C code. the compiler is a single program that operates in two 'modes': either the 'C' mode or the 'C++' mode. the 'mode' is determined by either the command line options or the name of the source file. for example, see:
http://msdn.microsoft.com/en-us/library/032xwy55.aspx
---------- FOLLOW-UP ----------
QUESTION: so turbo C++ is compiler of C++ and turbo C is compiler of C. is it?
AnswerTurbo C++ is a C++ compiler and integrated development environment (IDE)
from Borland. its compiler can also compile C code.
http://en.wikipedia.org/wiki/Turbo_C++
Turbo C (now obsolete) was an Integrated Development Environment (IDE) and compiler for C from Borland. in 1990, Borland replaced Turbo C with (also now obsolete) Turbo C++ 1.0
http://en.wikipedia.org/wiki/Turbo_C
the only conforming (to ISO C or C++ standard) Turbo brand compiler is Turbo C++ 2006 (part of the Turbo Explorer suite).
http://www.turboexplorer.com/cpp