You are here:

C/source code of C++ Compiler and interpreter

Advertisement


Question
sir, i would like to know where i could get the source code of C++ compiler and interpreter written in C ,i need to understand,how coding of a new compiler took place over another language.so, please help me put sir...in searching the code
thank you

Answer
Most compilers consist of copyrighted material which is very, very protected.  You will not be able to obtain the source of most compilers without being an employee of the company which distributes them.

That said, GCC is a free compiler released under the GPL and its source is freely available.  I believe the compiler itself is written in C, so this would be exactly what you're looking for.  Go to their website, http://gcc.gnu.org/ and download the release of your choice.  Make sure you grab a full release, which includes source, not just the binaries.

C

All Answers


Answers by Expert:


Ask Experts

Volunteer


Joseph Moore

Expertise

I've been programming in one form or another since my brother taught me BASIC when I was 6. I've been programing professionally since I was 20, first web development with HTML, JS, DHTML, CSS, etc., then I became a video game developer, writing code in C, C++, C#, SQL, assembly, and various scripting languages. I've even written my own scripting languages, custom designed for the games I was making. I also dabble in Java, PHP, and Perl. I've worked on pretty much every aspect of game development, including graphics, audio, gameplay, tool, UI, input, animation, and physics.

Experience

I've been writing C code for 12 years, both on my own in my spare time and professionally.

Organizations
IGDA

Education/Credentials
Bachelor of Science in Game Design and Development, Full Sail University, Winter Park, FL

Awards and Honors
Salutatorian and Advanced Achiever Awards at Full Sail; Independent Games Festival Student Showcase winner, 2004; Featured article on Gamasutra about an experimental game developed in 2004

©2012 About.com, a part of The New York Times Company. All rights reserved.