In this video you will learn the compilation process occurring behind the C/C++ programs in gcc compiler in details. You will learn how you can generate the output files after every compilation stages. The complete process is shown in this video uses the Vim editor on Linux Machine.
==============================================================================
Terminal Commands used in the video are:
1) ls : ls is a command-line utility for listing the contents of a directory.
2) rm : deletes single/multiple files at once followed by the file names separated by space.
3) clear : to clear the terminal screen short-cut is ' Ctrl+L '
4) gcc -E file : to get the pre-processed output.
5) gcc -S file : to get the compiler output.
6) gcc -o file : to get the object code.
7) gcc file : to get the final executable file.
8) ./a.out : to run the executable file.
9) gcc -Wall -save-temps file : to get all the above intermediate files at once.
10) cat : cat allows us to create single or multiple files, view contain of file, concatenate files and redirect output in terminal or files.
# If source code is (.c file) then use gcc
# If source code is (.cpp file) then use g++
===============================================================================
Send your feedbacks::
codebrushers@gmail.com
Subscribe to Code Brushers::
[ Ссылка ]
![](https://s2.save4k.ru/pic/vewJP5f6PVw/maxresdefault.jpg)