What is GCC written in?

Year 1987 Paradigm tool Typing unspecified Self-hosting yes

GNU Compiler Collection.

The GCC compiler is written in C and C++ (well-documented). GCC is self-hosting.

Relationship Graph

All directly connected languages. Click any node to navigate to its page.

Compiler Implementation

LanguageConfidenceNotesSource
C 95% GCC originally written in C, switched to C++ in 2012 Source
C++ 95% GCC switched from C to C++ in 2012 Source

Frequently Asked Questions

What language is GCC written in?
GCC is primarily implemented in C and C++. See the implementation section above for details and source references.
Is GCC self-hosting?
Yes, GCC is self-hosting — its compiler can compile itself.

Evidence Sources

Related Languages

Explore GCC in Graph →