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:
Thanks for that because i don't know what's the process is done as start the program execution....ambariya mehul
Post a Comment