Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Internal memory managing method and device of embedded system

An embedded system and memory management technology, applied in the field of memory management methods and devices of embedded systems, can solve problems such as insufficient memory, memory leakage, and the like, and achieve the effect of avoiding memory fragmentation and speeding up the speed.

Inactive Publication Date: 2008-07-16
ZTE CORP
View PDF0 Cites 72 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0009] The problem to be solved by the present invention is to provide a memory management method and device for an embedded system, so as to solve the problem of memory fragmentation in the embedded system, ensure the requirements of the application program, and avoid insufficient memory caused by the memory leak of the application program

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
  • Internal memory managing method and device of embedded system
  • Internal memory managing method and device of embedded system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0031] The technical features of the present invention will be described in detail below in conjunction with the embodiments and accompanying drawings.

[0032] In the present invention, in order to better solve the problem of memory fragmentation, meet the memory requirements of application programs, and avoid insufficient memory caused by memory leaks, the present invention proposes a new memory management method. Divide the entire heap memory of the system into a small number of large memory areas (A, B...Z) of different sizes, apply for a large memory area before the actual running of the application, and then use the heap method to apply and release Each small block of memory required by the application is merged and sorted during the process of releasing the adjacent free memory, and the entire large memory area is released when the application exits.

[0033] Please refer to FIG. 1 which is a schematic structural diagram of the embedded system of the present invention. ...

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 discloses a memory management method and a device for an embedded type system. The method of the invention comprises the following steps: firstly, a memory is divided into a plurality of large memory zones with unequal memory capacities; secondly, when an application program begins to run, a large memory zone which is matched with a maximum memory requirement value of the application program is allocated for the application program; thirdly, a small memory is allocated for the application program in the matched large memory zone by utilization of heap means; fourthly, when the small memory is released by the application program by utilization of heap means, the small memory is combined with adjacent and free small memories; when the application program stops running, the matched large memory zone is released. The invention avoids a large amount of memory fragmentations, quickens speed of memory fragmentation defrag and avoids the necessity in a memory pool means of calculation of the size and number of each memory which needs for dynamic allocation of each application program.

Description

technical field [0001] The invention relates to an embedded system, in particular to a memory management method and device of the embedded system. Background technique [0002] Memory management is a very important part in embedded systems. There are currently two main memory management methods. [0003] 1. Heap method: [0004] The basic mechanism of its implementation is to allocate a block of memory in the continuous system heap space according to the actual size of the application program. The allocated memory is managed in series with a linked list. When the user releases it, the two blocks of memory will be automatically fragmented and merged. The advantage is that no memory is wasted. [0005] Because it is allocated on a continuous space, a certain degree of fragmentation can be performed. The disadvantage is that after running for a period of time, a large number of memory fragments will be generated due to unavoidable memory leaks and other applications occupyi...

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/06
Inventor 童晓演殷飞惠毅薛晨曦
Owner ZTE CORP
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products