Object Oriented Concepts and Programming

Blog is for Object oriented concepts and prgramming. Specially for MCA GTU (Gujarat Technological University) student

RSS
  • Home
  • Edit

Startup code for C/C++, How actual program execuion starts.

Saturday, April 10, 2010 by Vishal Joshipura | 1 comments
Startup code for C/C++ programs usually consists of the following actions, 
performed in the order described:

1.Disable all interrupts.

2.Copy any initialized data from ROM to RAM.

3.Zero the uninitialized data area.

4.Allocate space for and initialize the stack.

5.Initialize the processor's stack pointer.

6.Create and initialize the heap.

7.Execute the constructors and initializers for all global variables (C++ only).

8.Enable interrupts.

9.Call main.

After Calling main it doesnt stop but also include few instruction after calling main and
then your code will start working....


1 comment:

mehul said...

Thanks for that because i don't know what's the process is done as start the program execution....ambariya mehul

May 13, 2010 at 3:05 AM

Post a Comment

Subscribe to: Post Comments (Atom)

Blog Archive

  • ▼  2010 (10)
    • ►  November (1)
    • ►  August (3)
    • ►  May (2)
    • ▼  April (3)
      • Program code for calculating Factorial of a no, Ho...
      • Startup code for C/C++, How actual program execuio...
      • How To Implement Default Argument in Function.
    • ►  March (1)

Followers

Labels

  • Argument (1)
  • Class (1)
  • Defualt Argument (1)
  • Fact (1)
  • Factorial (1)
  • Item (1)
  • OOCP Material (1)
  • Pass by address (1)
  • Pass By argument (1)
  • Recursive Function (1)

Contributors

  • Dr. Parag Shukla
  • Vishal Joshipura
  • vaibhav

Pages

  • Home
Copyright © 2010 Object Oriented Concepts and Programming