what does gcc main.c do?

gcc stands for gnu compiler collection and its function is to turn any files written in any programming languages into executable files.

When you run gcc main.c, the file main.c through an order of operations that has been predetermined by gcc. The first phase is the preprocessor phase.

In this preprocessor phase it strips away all comments and leaves you with just the codes and header files. It then sends it to the compiler which jumbles it up into lots of words that it can understand. After that it is sent through the assembler which turns the codes into binary. Finally links are applied to the code, the library and other files the code is invoking.

Once gcc finishes reorganizing main.c it then creates a file that is put into the user’s current directory and prompts the user for additional inputs.

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.