Compilation Process in C with Live Example | Debug tips to find which step compilation fails

preview_player
Показать описание
In this video Compilation processes in C and C++ is explained clearly with a Live Example.

We used GCC compiler for compilation.

Compilation process in C is Four Steps, They are Preprocessing, Compilation, Assembly and Linking.

A small Hello World C program is taken as a example compiled with GCC command line to save the intermediate temp files by GCC.

Each step will generate a output file i.e., .i, .S, .o and final executable file (bin, hex, elf, exe)

We explained the way to debug Macro error, Syntax error and Linker Errors.

Also as a bonus content hex file and binary file is explained with example.

This video answers below Questions

Compilation Process In C ?

Compilation Process of C Programming ?

Stages of Compilation in C Programming ?

Compilation Process with Example ?

Compilation Steps with Example ?

How Compiler Works Animation ?

compilation process in c with diagram ?

compilation process in Embedded System ?

Compilation Process in C Language ?

Compilation Process in Arduino ?

Embedded C interview Question and Answer ?

Explain the Compilation process in C ?

What is Preprocessing Compilation Assembly and Linking ?

How to solve Macro Errors and Linker Errors in C ?

GCC Compilation command ?

How to Save the Compilation time Temporary files in GCC Compiler ?

------------------------------------------------------
Some C and CPP tutorials from Our Channel

Do you know how to answer for What is Volatile Keyword ?

How to find Little Endien or Big Endien? Write a Program to find the Endien?

Write a program Swap Little Endien to Big Endian and vice versa ?

What is Binary Coded Decimal aka BCD ? Where BCD is used ?

Write a C Program for BCD to decimal and decimal to BCD Conversion ?

How do you count the number of bits set in a integer?
Write a C program to count the number of bits set in a integer ?

What is the output of this program ?
char ch =256;
printf("%d",ch);

Top Performing videos in our Channel

Embedded C interview Questions

------------------------------------------------------
Follow us on Facebook

Follow us on Instagram

Follow our webesite

If you end up liking this video please subscribe to our channel and dont forget to hit the bell icon.

Please share this video with your friends if you find interesting.

------------------------------------------------------

#Compilation #C #CompilationProcess #Arduino #GCC #How #HowCompilersWork
Рекомендации по теме
Комментарии
Автор

Sir after linker there is also Loder right?? What loader do??? And please explain same approach with some embedded IDE like Keil. Some Target board like STM32 will do the best job of explaining how .hex is generated and how diassembly is interpreted

kolhatkarchinmay