C Programming tutorial - C compilation process | Preprocessor | Assembler | Compiler | Linker

preview_player
Показать описание
In this video, you will understand the compilation process in c programming, and will learn how to generate temporary files at different stage of compilation with gcc compiler.

Compilation process
1) Source files will be pre-processed first and will generate .i file
2) Assembler will take these pre-processed files and generate assembly code for this
3) Compiler will take assembly files as input and will generate, object files.
4) Linker will take these object files as input and will generate single executable file.

Pre-processed file can be achieved using -E option
-C or -CC option instruct the pre-processor to keep comments in pre-processed file.
-P option instruct the pre-processor to avoid line markers.

-S option is used to generate assembly code.

-c option is used to get object file.

-o option is used to place output in a file.

-Wall option is used to activate the basic warnings.

#gcccompiler #cprogramming #compilerinc #gcc #cprogramming #compiler #assembler #linker #preprocessor
Рекомендации по теме
welcome to shbcf.ru