Project Stage 2 - part 1 : Navigating the GCC codebase

Intro

In this post, I will write about the progress of navigating the GCC codebase and what I learned from it.


Progress

I just started to go into folders and looked into the folders and the files. Sometimes I checked Docs. However, I had no idea of where I should look and what files are important. I hope I can get familiar with GCC and figure out where I should pay attention. The followings are what I thought are important while wondering around the gcc folders. 

Executable files

It looks like bin folder contains the executable files of GCC compiler.










Passes

I was wondering around the gcc-test-001 folder and found plugin/include folder, and The file passes.def looks like it controlls the compilation passes.

















C++ files 

I also found a folder that contains c++ related files. It contains library files such as fstream and ostream.














I checked the ostream file, and it looks like it contains the code for printing out as follows:



















As the post is getting too long, I will continue writing about my progress of navigating GCC codebase in the next post.


Comments

popular posts in this blog

Project Stage 2 - part 2 : Clone-Pruning Analysis Pass

Project Stage 2 part 4 - Testing clone-test-core.c file with Modified GCC file and making further modification

Project Stage 2 part 3 - Compile a program with revised GCC