Programming language · 1983

C++

General-purpose programming language.

Official site ›
C++ logo
C++Written in
1983First released
Bjarne StroustrupDeveloper
staticTyping
Built fromInfluenced C++ C++CSimulaALGOLObjective-CDJavaCUDARustC#Solidity
CompilerInfluence
ReplacedC for large, performance-critical applications
Being replaced byRust for many new safety-critical and systems projects

What is C++ written in?

C++ is compiled by GCC (g++), Clang, and MSVC. These compilers are themselves written mostly in C++, so C++ is self-hosting. The Clang/LLVM toolchain is written in C++.

What C++ is used for

C++ is used where you need both high performance and large-scale structure: game engines, browsers, databases, trading systems, and high-end desktop software. It adds object orientation, templates, and the standard library on top of C's speed.

Notable software: Unreal Engine, Google Chrome, Adobe Photoshop, MySQL, and most AAA video games.

About C++

C++ is a general-purpose programming language. It is a statically typed language that compiles ahead of time to native machine code. It supports object-oriented, imperative, and generic programming.

C++ first appeared in 1983 and was designed by Bjarne Stroustrup. Today C++ is one of the most widely used programming languages in the world.

C++ in the language family tree

C++ drew on ideas from Simula, C, Objective-C, and ALGOL and went on to influence Java, D, Rust, C#, Solidity, and CUDA.

Sources: Wikipedia · Wikidata · Official site

Quick Facts

Short answer
Compiled by g++, Clang, and MSVC (all C++)
Created by
Bjarne Stroustrup, 1985
Backend
LLVM (Clang) or GCC
Self-hosting
Yes, C++ compilers are written in C++

C++ compilers and the LLVM backend

C++ has no single reference compiler. The three dominant toolchains, GCC's g++, Clang, and Microsoft's MSVC, each parse C++ and emit native code. Clang is a C++ front end for LLVM, and LLVM's optimizer and code generator are also written in C++. That same LLVM backend is used by Rust, Swift, and Julia.

Because every major C++ compiler is itself a C++ program, building a compiler requires an existing C++ toolchain, the classic self-hosting arrangement.

C++ toolchains compared

ToolchainWritten inBackend
GCC (g++)C and C++GCC backend
ClangC++LLVM
MSVCC++Microsoft backend

Frequently Asked Questions

What language is C++ written in?
C++ is compiled by GCC (g++), Clang, and MSVC. Those compilers are written largely in C++ themselves, so C++ is self-hosting. C++ compiles to native machine code.
What languages influenced C++?
C++ was influenced by Simula, C, Objective-C among others. See the influence section above for the full list.
Which languages did C++ influence?
C++ influenced Java, D, Rust among others.
Is C++ self-hosting?
Yes, C++ is self-hosting, its compiler can compile itself.
When was C++ first released?
C++ was first released in 1983. It was designed by Bjarne Stroustrup.

Evidence Sources

Discover More

Embed this graph

Paste this iframe into any HTML page to show the C++ relationship graph.

<iframe src="https://www.languagelineage.org/embed?lang=cxx" width="100%" height="500" loading="lazy" style="border:0" title="C++ relationship graph"></iframe>

Please attribute the visualization to Language Lineage and link to the C++ source record. See the embed guide for parameters and sizing.

Spot something wrong?

Every fact on this page is meant to be checkable. If one is wrong, say so and it becomes a dataset change, not a patch to this page.

Goes to a public GitHub issue for review. Nothing you write appears on this site.

Explore C++ in Graph →