Stack Overflow Tutorial 18-642
54 بار بازدید -
6 سال پیش
-
Prof. Phil Koopman, Carnegie Mellon
Prof. Phil Koopman, Carnegie Mellon University: Stack Overflow
For slides, see:
https://users.ece.cmu.edu/~koopman/lectures/
Anti-Patterns:
No worst case stack size analysis
Use of recursion
No memory protection for stack
The stack stores data for subroutines
Automatic (non-static) variables
Also, subroutine interrupt register saves
Calls put data on stack
Interrupts RTOS calls put data on stack too
But what if the stack overflows?
Need to handle worst-case stack size
6 سال پیش
در تاریخ 1397/10/02 منتشر شده
است.
54
بـار بازدید شده