What happens when you type gcc main.c

gcc “Gnu Compiler Collection” is a tool that support many compiled languages as C, C++, Java. It is used to translate/transform from human reading language to binary processor language.
when you type gcc main.c, gcc assume that your code is in a file named main.c.
the compilation process include 4 steps :
- Preprocessor : Preprocessor is just a text substitution tool.
- Compilation : Transform the code into assembly code.
- Assembler : Convert the code into binary code.
- Linker : Link together object files into a binary executable
Without any option, the binary output is named “a.out”.