Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>HOW A SOURCE CODE TRANSLATED TO EXECUTABLE CODE ? We provide Source Code to the compiler and it gives us Executable code .But this is not a single step operation .This follow some predefined steps to convert the Source Code to Executable Code.</p> <p><strong>steps followed for conversion from source code to executable code</strong></p> <p><strong>1.Preprocessor</strong> It is very useful part of the compiler as it does lots of job before translated to machine code. It is a text processor which dose the below text editing operation</p> <p>It removes the comment lines in source code which are written in the Source code for more readability/easy understanding . It add the content of header files to the source code. Header files always contains function prototypes and declarations.(Header files never contain any executable code ) A very important property of Preprocessor is Conditional Compile. It is very required for scalable design. This property also remove the unnecessary burden from compiler. Macros are replaced by this preprocessor.</p> <p>The final output of this stage is known as pure C code.</p> <p><strong>2.Translator</strong> This part of complier is responsible for converting of pure C code to assembly language code. Step by step mapping of C language code to assembly language code done here. The prototypes of the functions and declarations are used by this part for translation of C code. The out put of this stage known as assembly code.</p> <p><strong>3.Assembler</strong> It generate Object code from assembly language code.It converts the assembly language codes to machine language code(i.e in 0's and 1's format).It is not directly run as we take the help of OS to execute our code in processor. The out put of this stage known as object code.</p> <p><strong>4.Linker</strong> It give the final executable code which is going to be run in our machine. The output of this stage is known as executable code. Which is a combination of object code and supporting files. The supporting files may be user defined function definitions ,predefined library function definitions ...etc. </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload