Posts

Showing posts from January, 2022

Local Global Variable Along with C memory Layout

Image
 Variable In C   1.Variable Defination. 2.Difference between Variable Declaration and Defination.         3.Scope of Variable.          4. C Memory Layout. 1.Variable Defination 1.In the C Programming Language, variables are used to store various types of data.  2.Variables must be defined before they can be used within a program.  3.Variable declarations include the type of the variable and, optionally, its initial value. Syntax:- data_type variable_name ; e.g. a. int count;                                                        {here creating integer type of variable with name count}                                                   ...

The Four Stage of Compilation (Toolchain)

Image
Hello Eveyone, Before running any  C code we save our file with .c extension, but we don't know how the compiler or to be more precise tool-chain like gcc manages it . This post is for understanding the basic thing how tool-chain manage to convert our source code to the executable (code which we run). This concept will help us in many ways:-                                        1.finding  Error in source code.                                         2.Understanding Tool-chain.                                        3.Internal of compiler and other binutils and their dependency on each             ...