This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

how to initalise the stackpointer register in main c program

how to initialize the stack pointer register in main c program

Parents
  • But with some processors (for example the Cortex-M3), the setup of the stack pointer etc can be done without any assembler involved. But that is covered in the documentation for the specific processor.

    Another thing is that a processor can have multiple stacks, so main() may configure at least some of the stacks depending on processor and protection modes.

Reply
  • But with some processors (for example the Cortex-M3), the setup of the stack pointer etc can be done without any assembler involved. But that is covered in the documentation for the specific processor.

    Another thing is that a processor can have multiple stacks, so main() may configure at least some of the stacks depending on processor and protection modes.

Children
No data