Garthus
1 min readSep 16, 2020

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”.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Garthus
Garthus

No responses yet

Write a response