Unlock instant, AI-driven research and patent intelligence for your innovation.

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

Inactive Publication Date: 2019-12-27
CHINA FIRST AUTOMOBILE
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The above-mentioned technical solution can only detect the stack overflow problem. When the stack overflows, the overflow data cannot be processed, and the operation of the operating system is unstable.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Stack memory allocation method and device, equipment and storage medium
  • Stack memory allocation method and device, equipment and storage medium
  • Stack memory allocation method and device, equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

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...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The embodiment of the invention discloses a stack allocation method and device, equipment and a storage medium. The method comprises the steps of determining a corresponding task stack according to task information; determining at least one shared stack based on each task stack; and when it is detected that a target task stack overflows, migrating data in the target task stack to the shared stack.According to the technical scheme provided by the embodiment of the invention, the shared stack is set through the task stack, so that the problem of program runaway caused by overflow of the task stack is solved, the memory space occupation is reduced, the program stability can be enhanced, and the memory utilization rate is improved.

Description

technical field [0001] The embodiments of the present invention relate to the technical field of computer applications, and in particular to a stack memory allocation method, device, device and storage medium. Background technique [0002] With the development of intelligent driving technology, embedded systems have developed rapidly in the field of intelligent driving. In order to meet the requirements of intelligent driving technology, the requirements for real-time operating systems are becoming more and more stringent. Temporary data needs to be stored in the operating system, so it is necessary to provide Temporary data allocation storage space, this part of the storage space is called the task stack. In the field of intelligent driving, if the stack allocation is too large, the memory space will be wasted, if the stack allocation is too small, the program will run away or the software will restart during the running of the task, so how to allocate an appropriate stack ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F12/02
CPCG06F12/0246
Inventor 张晓谦孙忠刚李岩
Owner CHINA FIRST AUTOMOBILE