Photo by Alexandru Acea on Unsplash

What happens when you run “gcc main.c”?

When you run gcc main.c, what will happen is that an executable file named a.out will appear in the directory you are in. What happens in between the time that you run the command and receive the executable?

C Compilation Process figure
Sample C code

Software Engineer living in Tokyo | Linux | Cats | https://github.com/kai-dg | https://haruspace.dev | https://ko-fi.com/harukai

Software Engineer living in Tokyo | Linux | Cats | https://github.com/kai-dg | https://haruspace.dev | https://ko-fi.com/harukai