Stack memory allocation method and device, equipment and storage medium
A technology of stack allocation and stacking, which is applied in the field of devices, stack memory allocation methods, equipment and storage media, and can solve problems such as overflow data processing and unstable operation of the operating system, so as to achieve efficient utilization, prevent data loss, and improve security sexual effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0027] figure 1 It is a flow chart of the stack allocation method provided by Embodiment 1 of the present invention. This embodiment is applicable to the stack allocation of the vehicle control operating system. The method can be executed by a stack allocation device, which can use hardware and / or software way to do so, see figure 1 , the method of the embodiment of the present invention may include the following steps:
[0028] Step 101, determine the corresponding task stack according to the task information.
[0029] Wherein, the task information may be the information generated by the vehicle control system to execute the task, and may include the data to be temporarily stored and the task name, etc., the task stack may be a stack for storing task information, and the task stack may be located in the memory block of the vehicle control system.
[0030] In the embodiment of the present invention, when the vehicle control system executes a task, it can generate a task stac...
Embodiment 2
[0039] figure 2 It is a flow chart of the stack allocation method provided by the second embodiment of the present invention; the embodiment of the present invention is based on the embodiment of the above invention, see figure 2 , the method of the embodiment of the present invention includes:
[0040] Step 201, respectively determine the start address of each task stack.
[0041] Wherein, the start address may be the start address of each task stack in the memory of the vehicle control system, and may include a logical address and a physical address of data stored in the task stack.
[0042] Specifically, the address of the starting location of the storage location can be determined according to the task information, and the address can be used as the starting address of the task stack corresponding to the task information. When the vehicle control system executes the task, the temporary storage data can be stored in the starting address corresponding memory space.
[0...
Embodiment 3
[0078] Figure 5 It is a schematic structural diagram of the stack allocation device provided in Embodiment 3 of the present invention. The stack allocation device provided in the embodiment of the present invention can execute the stack allocation method provided in any embodiment of the present invention, and the corresponding functional modules and beneficial effects of the script execution method. The apparatus may be implemented by software and / or hardware, and specifically includes: a stack determining module 301 , a sharing determining module 302 and an overflow processing module 303 .
[0079] Wherein, the stack determination module 301 is configured to determine a corresponding task stack according to task information.
[0080] A sharing determining module 302, configured to determine at least one shared stack based on each of the task stacks.
[0081] The overflow processing module 303 is configured to migrate the data in the target task stack to the shared stack wh...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


