|
|||||||||||
|
Technical Support On-Line Manuals C251 User's Guide |
C251 User's GuideCalculating Stack SizeThe C251 compiler cannot calculate exact stack sizes of your application since the compiler does not detect the actual program flow and does not know about the interrupt functions in your system. The 251 hardware stack is used to store reentrant variables, return addresses, and PUSH/POP instructions. The size of the hardware stack area is defined in the file START251.A51. The default value of the system stack is 100 bytes which is usually enough for most non-reentrant applications. If you use heavily reentrant code in your application, you should increase the value for the hardware stack to 500 bytes. If you want to reduce the stack size, we suggest the following procedure for calculating the user stack size of your system:
If your application behaves strangely and if you think that the stack size could be a problem, you may increase the user stack size and try again. | ||||||||||
|
|||||||||||