Embedded software memory management method

An embedded software and memory management technology, applied in the direction of electrical digital data processing, resource allocation, program control design, etc., can solve the problems of inflexibility and poor flexibility, increase flexibility, reduce time consumption, and improve dynamic memory management efficiency effect

Active Publication Date: 2018-05-15
TIANJIN JINHANG COMP TECH RES INST
View PDF11 Cites 15 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The traditional memory pool management mechanism can only allocate memory blocks of fixed size, which has poor flexibility; although other memory pool management methods can realize dynamic allocation of memory blocks, the memory space managed by the memory pool is created by defining a global array, and the array name is used as The memory pool address pointer is passed to the generation function, which is obviously not flexible enough

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
  • Embedded software memory management method
  • Embedded software memory management method
  • Embedded software memory management method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0023] In order to make the purpose, content, and advantages of the present invention clearer, the specific implementation manners of the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments.

[0024] In order to improve the utilization rate of embedded system memory, effectively solve the problems of memory fragmentation and memory leakage, and realize fast allocation and release of memory, the present invention proposes an embedded software memory management method. This method adopts the method of static allocation, presets the number of partitions in the system memory area and the number and size of memory blocks in each partition, and then adopts the method of dynamic memory allocation to the user memory area based on the pool memory management mechanism. The memory allocator handles memory application and release requests, and improves the traditional dynamic memory allocation and release algorithms. Th...

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 invention relates to the technical field of embedded software memory management, in particular to an embedded software memory management method. By means of static allocation, the partition area quantity in a system memory area and quantity and size of memory blocks in each partition area are preset, then a dynamic memory allocation mode is adopted for a user memory area on the basis of a pool-type memory management mechanism, memory application and release requests are processed through creating of a memory allocator, and traditional dynamic memory allocation and release algorithms are improved. By combination of static system memory area allocation and dynamic user area allocation, system flexibility is improved while generation of a great quantity of fragments is limited, and memoryleakage is avoided. In addition, by adoption of the method, time consumption in memory application and release can be effectively reduced, and dynamic memory management efficiency is improved.

Description

technical field [0001] The invention relates to the technical field of embedded software memory management, in particular to an embedded software memory management method. Background technique [0002] Due to the real-time, flexibility and stability requirements of embedded systems, there are special strategies for memory management. Good program performance partly depends on its effective memory management capabilities, while the performance of conventional heap memory managers will be affected by memory fragmentation and memory recovery requirements, especially in application environments where memory is frequently allocated and released, it is more likely to become bottleneck in system performance. Not only that, but a potential memory leak could exhaust a long-running system's memory, causing a drastic drop in system performance and eventually crashing. In order to solve the problems of memory fragmentation in the heap brought about by the embedded system during memory...

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): G06F9/50
CPCG06F9/5016G06F9/5022G06F2209/5011
Inventor 赵昶宇蓝仁恩
Owner TIANJIN JINHANG COMP TECH RES INST
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products