Q:

What are the start-up code steps?

0

What are the start-up code steps?

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

Answer:

Start-up code for C programs usually consists of the following actions, performed in the order described:

  • Disable all interrupts.
  • Copy any initialized data from ROM to RAM.
  • Zero the uninitialized data area.
  • Allocate space for and initialize the stack.
  • Initialize the processor’s stack pointer.
  • Create and initialize the heap.
  • Enable interrupts.
  • Call main.

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Embedded C interview questions and answers (2022)

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
Infinite loops often arise in embedded systems. Ho... >>
<< What is the start-up code?...