Have something to say?

Ready to be published? LXer is read by around 350,000 individuals each month, and is an excellent place for you to publish your ideas, thoughts, reviews, complaints, etc. Do you have something to say to the Linux community?

Dissecting GCC compilation process on Linux

Have you ever wondered what goes behind the scenes when a program is compiled through GCC compiler on Linux? This article dives in to the details of each step that happens in the GCC compilation process.

Ever thought of what goes on when a C source code is compiled through GCC to produce and executable? When we say GCC compilation process then what happens in this process?

The GCC compilation process can be broken down into four steps.

These steps are :

Preprocessing,
Compilation,
Assembly,
and Linking

Each of the above step has its own importance. Lets understand the basics of these steps one by one.