Dynamic memory area of embedded equipment without memory management unit and management method

A technology of memory management unit and embedded device, which is applied in the direction of program control design, electrical digital data processing, resource allocation, etc. It can solve the problems of not supporting reentrancy of functions, failure of memory application, and not supporting synchronization protection, etc., and achieve reduction Probability of large memory application failure, reduction of memory fragmentation, and effects of avoiding memory overflow errors

Active Publication Date: 2021-02-23
SHANGHAI SUMI TECH CO LTD +1
View PDF5 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] Memory fragmentation problem: In the process of dynamic memory allocation and release, the small memory fragments generated cannot be reallocated and used
After multiple allocations and releases, there will be some discontinuous small memory that cannot be re-allocated and used, which is prone to memory fragmentation problems
Moreover, in existing devices without MMU, the memory is allocated as a physical address. Only when the memory is released, there is a chance to organize and merge the memory, and the memory to be released and the adjacent memory must be free memory.
With such characteristics, it is very easy to generate a large number of memory fragments, and the export memory application fails
Function reentrancy is not supported, there can only be one memory allocation area, and synchronization protection is not supported, resulting in the inability to support the use of multi-tasking programs, direct manipulation of memory addresses, and the risk of memory overflow

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
  • Dynamic memory area of embedded equipment without memory management unit and management method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0047] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0048] refer to figure 1, a dynamic memory area of ​​an embedded device without a memory management unit, comprising: a dynamic memory initialization module, which is used to initialize the memory area so that the memory space is in an idle state;

[0049] A dynamic memory allocation module, which is used to allocate memory space of a specified size, mark it as used and return the unique identifier of the allocated space;

[0050] A dynamic memory release mod...

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 dynamic memory area of embedded equipment without a memory management unit and a management method, and the dynamic memory area comprises a dynamic memory initialization module which is used for initializing the memory area so as to enable the memory space to be in an idle state; a dynamic memory allocation module which is used for allocating a memory space with a specified size, marking the memory space as a used state and returning a unique identifier of the allocated space; a dynamic memory release module which is used for marking the memory space to be in an idlestate according to the unique identifier of the allocated memory; and a dynamic memory fragment arrangement module which is used for scanning the memory space and dynamically arranging the memory fragments. According to the invention, the problem of memory application failure is greatly reduced, a plurality of memory allocation regions can be supported, the memory allocation areas are independentfrom one another and do not influence one another, synchronous protection is performed, and a multi-task program is supported.

Description

technical field [0001] The invention relates to the technical field of dynamic memory management, and in particular relates to a dynamic memory management method of an embedded device without a memory management unit. Background technique [0002] Memory fragmentation problem: In the process of dynamic memory allocation and release, the small memory fragments generated cannot be reallocated and used. This problem caused program memory application to fail, affecting program stability. [0003] For a CPU with an MMU function, memory addresses are divided into virtual addresses and physical addresses. Dynamic memory allocation can allocate virtual addresses first, and then allocate physical addresses in units of pages (generally 4096 bytes) when using them, and associate virtual addresses with physical addresses. This method can effectively reduce the problem of memory fragmentation. There is no MMU embedded device, the CPU does not support the MMU function, and there is no ...

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/5016
Inventor 聂鹤宇林喆胡伟鹏
Owner SHANGHAI SUMI TECH CO LTD
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