You are here:

C++/compiler of C++

Advertisement


Question
QUESTION: 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?

Answer
Turbo 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  

C++

All Answers


Answers by Expert:


Ask Experts

Volunteer


vijayan

Expertise

my primary areas of interest are generic and template metaprogramming, STL, algorithms, design patterns and c++11. i would not answer questions about gui and web programming.

Experience

about 15 years or so

Education/Credentials
post graduate engineer

©2016 About.com. All rights reserved.