Supercharge Your Innovation With Domain-Expert AI Agents!

Efficient dynamic memory management method applied to MCU

A dynamic memory and management method technology, applied in the direction of electrical digital data processing, resource allocation, program control design, etc., can solve the problems of high execution efficiency, poor real-time performance, and low execution rate

Pending Publication Date: 2020-02-14
TIANJIN JINHANG COMP TECH RES INST
View PDF5 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In order to solve the problems of poor real-time performance, relatively high memory fragmentation rate and low execution rate of traditional methods in small MCUs, an internal dynamic memory management method is proposed, so that the memory management method occupies less system resources, high execution efficiency, and low memory fragmentation rate. Low

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
  • Efficient dynamic memory management method applied to MCU
  • Efficient dynamic memory management method applied to MCU
  • Efficient dynamic memory management method applied to MCU

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0033] 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.

[0034] combine figure 1 , in order to solve the problems of poor real-time performance of heap memory, relatively high memory fragmentation rate, and low execution rate in small MCU systems, the present invention provides an efficient dynamic memory management method, which occupies less system resources and has high execution efficiency and memory fragmentation. The conversion rate is low.

[0035] The concrete process of the inventive method is:

[0036] Step S1: Manage memory in the form of multiple byte memory blocks

[0037] The unit of each memory block is 8 bytes. The memory block method effectively improves the efficiency of memory application release. When memory application is released, design a message mana...

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 belongs to the field of computer software design. The invention discloses an efficient dynamic memory application method applied to a small MCU. The efficient dynamic memory applicationmethod mainly solves the problem that a small MCU has no heap space and dynamically manages the memory, manages large memory blocks, ensures that the fragmentation rate is low in the release process of an application, marks the use condition of the memory blocks by using an MAT table, and optimizes the search speed by using MAT table matching in the memory block search process. The efficient dynamic memory application method applied to a small MCU provides a global memory initialization function, a memory dynamic application function and a memory release function to be managed in a global area. The efficient dynamic memory application method applied to a small MCU has the advantages of less occupied system resources, high execution efficiency and low memory fragmentation rate, and is particularly suitable for small MCUs with shortage of memory resources.

Description

technical field [0001] The invention belongs to the field of computer software design and relates to a high-efficiency dynamic memory management method applied to an MCU. Background technique [0002] Since the system resources in the embedded environment, especially the small MCU, are usually relatively small, especially the precious memory resources, the use of memory will become the key to the performance of the embedded system. In the software design of some traditional large system platforms , the function malloc of the C standard library is often used to dynamically apply for memory. The memory requested by this method is all memory applied in the heap. In some small MCU system startup management, the memory is not divided into stacks, so it cannot The malloc function is used to manage the memory, and the dynamic memory application method of the C standard library has poor real-time performance, and the memory fragmentation rate is relatively high after use. Tradition...

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
IPC IPC(8): G06F9/50
CPCG06F9/5016Y02D10/00
Inventor 王雨龙
Owner TIANJIN JINHANG COMP TECH RES INST
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More