Initialization method for maximum stack space of embedded system
An embedded system and setting method technology, applied in memory systems, instruments, computing, etc., can solve problems such as abnormal program crash, running chaos, stack overflow, etc., to achieve unique ideas, ensure reasonable application, and reduce costs.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0019] Below according to accompanying drawing and embodiment the present invention will be described in further detail:
[0020] The basic method of the present invention is: firstly, according to the space situation of each task, predetermine the maximum expected value of the stack space of this task; The maximum value, which finally determines the maximum stack space of the task. see figure 2 , the specific implementation of this technical solution includes the following steps:
[0021] 1. Pre-estimate a maximum estimated value according to the space situation of each task. This value can be set relatively large. For example, if the task occupies a large amount, it can be set to 8192 bytes first, and if the task is small, it can be set to 4096 bytes first. If the code is based on a certain solution, the general solution will give a suggested value, and the maximum expected value can be set to about 2 times the suggested value. In short, a larger stack space value should...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 