Main Stack Pointer(MSP) vs Process Stack Pointer(PSP) Both are useful in specific situations. All the stack frames are allocated in a region of memory called the call stack . JUMP STARTER; PORTABLE POWER STATION; PROJECTOR Callers can use the GetCurrentThreadStackLimits function to verify that the current stack pointer is within the returned limits. The process stack pointer (PSP, or SP_process in ARM documentation) can only be used in Thread mode (when not handling exceptions). The stack pointer selection is determined by the CONTROL register, one of the special registers that will be introduced later. In this case, you don't need to have a single explicit pointer in your program; you just need a recursive function without a base case. the value in this field will be used to set the frame pointer register, making it point to the caller’s stack frame again. The Stack Pointer register will hold the address of the top location of the stack. The run-time stack contains one activation record for each function or procedure invocation that is currently unfinished in the program. When an exception happens, a stack frame gets pushed to the currently ac It contains only one pointer top pointer pointing to the topmost element of the stack. Determining the stack usage of applications - Keil Heap Memory. At this point the RTOS kernel can check that the processor stack pointer remains within the valid stack space. Nevertheless, this is a tutorial about segmentation faults, and on some systems, a stack overflow will be reported as a segmentation fault. Stack has one end, whereas the Queue has two ends ( front and rear ). Pointer improves the performance for repetitive process such as: Traversing String; Lookup Tables; Control Tables; Tree Structures; Pointer Details Pointer Stack Pointer(SP) -> Frame Pointer(FP) -> Frame for g OLD FP/Dynamic Link Dynamic link (AKA Control link) points to the activation record of the caller. It contains well written, well thought and well explained computer science and programming articles, quizzes and practice/competitive programming/company interview Questions.