LEARN BLOGGING EASY - By Abhijit Patil
  • Home
  • About
  • Sitemap
  • Disclaimer
  • Contact
  • Trending Now! ▼
    • [T.E] Computer Engineering Syllabus
    • CRICKET PEPSI IPL 2015 Patch
    • Theory Of Computation
  • Write for Us!
Home » C language » Computer Engineering » Computers » Learn C » learn programming language C quickly » Introduction to the process of compilation and execution of C programs

Introduction to the process of compilation and execution of C programs

Posted by BA
» C language, » Computer Engineering, » Computers, » Learn C, » learn programming language C quickly
» Wednesday, September 9, 2015

The process of converting a c program file to the executable form is called as 'build process'. These conversion takes many steps. The steps of build process could be expalined with the help of following figure,


C Program source Code File.  Suppose a C program file (test.c)
Expanded source code of the c program file (test.i)
Generation of assembly code file (test.asm)
Relocatable Object Code With The object code of libraries file
The Final Executable Code File (test.exe)

So, we will see the build process steps in detail.

1) Editor : Type the source code in the editor like notepad, notepad ++.

2) Pre-Processing : The C program source is expanded as per the libraries included in the c program file (test.c). Here, note that we are assuming a c program with file named as (test.c). The file after expandation is named as (test.i)

3) Compilation : After the expandation of source code, the file (test.i) is then compiled into assembly language and is stored as an assembly file with an extension as '.asm' . Here the assumed file will be compiled and stored in assembly language as (test.asm).

4) Assembling : The assembler then translates the .asm file to the relocatable object code file as '.obj' and is one of the binary files.

5) Linking : The most important step of the build process were the executable file is created. The '.exe' file is created. Finding global variable, external function and combining data, code section.

6) Loading : Now the .exe file is created and stored on the disk and is ready for execution. The file is brought from the disk into memory (RAM) by 'program loader'. Program loader is an operating system component.


ADS HERE !!!

COMMENT POLICY: We’re pleased to see your comment here. However, Please Keep in mind that all comments are moderated manually by humans according to our comment policy. Using Keywords and links to your blogs or websites in the name field area is forbidden. Let’s enjoy a personal and meaningful conversation. Do not break the rules of comment policy.

Newer Post
Older Post
Home
Subscribe to: Post Comments (Atom)

Popular Posts

  • Third Year [T.E] Computer Engineering Pune University 2012 Course Syllabus
    T.E Computer (Pune University) [2012 Pattern/Course] Syllabus and Subjects : SEM-I Subjects for  semester 1  of T.E Computer engg [201...
  • Download CRICKET PEPSI IPL 2015 Patch For EA Sports Cricket 07
    EA SPORTS CRICKET 07 A2 STUDIOS IPL GAME PATCH  DOWNLOAD Today's post will be fun for 'gamers' as they will love the new IPL...
  • Theory Of Computation : Computer Engineering 5th Sem
    Theory of computation is a subject in computer science which deals with how efficiently a problem can be solved using a algorithm on a  ma...
  • The 6 Best Footer Designs For Blogger Template
    The 6 Best Footer Designs For Blogger Template Many of us are interested in designing their blogger template on their own. So, we design eve...
  • What is Bluestacks? How to use android apps On PC (Computer/Laptop)
      WHAT IS BLUESTACKS ? Bluestacks App Player For PC Bluestacks allows us to run all android applications on windows operating syste...
  • What is On-Page SEO and what are On-Page SEO Methods?
    What is On-Page SEO? 1) On-Page Seo  : It is  where you optimise elements of your site in an effort to increase your search ranking. U...
  • Write a shell program to convert all lowercase letter in a file to uppercase letter
    QUE: Write a shell program to convert all lowercase letter in a file to uppercase letter. ANS - clear         echo "Menu" ...
  • How to remove/hide author name and date-time from your blogger blog posts permanantly?
    Hi ! Today we will see the solution of one of the main problems faced by bloggers while they post on their blogs. Yes, it's the privacy...
  • Bidvertiser Advertising Adnetwork Review, Bidvertiser Payment Proof 2014
    Today, we will review an advertising network for our bloggers named 'Bidvertiser'. Don't worry if you have been banned or disab...
  • How to remove Subcribe to posts atom from blogger? Remove it permanantly from Blog
    Today, we will see that how can we design our blog and keep it clean and neat. So, many bloggers have thought of removing the 'subcribe...

CATEGORIES

  • Android
  • Big Data
  • Chrome Browser Tricks
  • Computer Engineering
  • Database Management Systems Applications
  • Download Youtube Videos
  • Hive
  • IPL 2015 EA Sports Cricket Game
  • Programming Basics
  • SEO
  • Top 10 Blogging Templates
  • Tutorials For Bloggers
  • Website Designing
  • Website Development
  • Widgets

ABOUT LBE

WHAT'S LBE?


Learn blogging easy often said (LBE) is a blog where you would be served with the finest of tech articles and other trending articles. The blog is a source of articles useful for computer engineering and other blogging topics. Started with a vision to provide good tech articles, we would do better and better day by day. Thank you all visitors for making this blog a success. We are thankful for your co-operation. Stay tuned and keep blogging :)

HEY VISITOR!

This is Abhijit Patil, an enthusiast geek blogger from Pune city (India), mostly interested in writing tech articles. Certified HTML/CSS web developer, also likes programming and tech niche. More importantly an SEO lover.

LBE QUOTE

You are what you think!

Copyright © | LEARN BLOGGING EASY - By Abhijit Patil | All rights reserved

↑