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

A Dynamic Memory Allocation Method

An allocation method and dynamic memory technology, applied in the directions of memory address/allocation/relocation, energy-saving computing, climate sustainability, etc., can solve the problems of low memory allocation efficiency, huge execution files, and low operating efficiency, and achieve memory allocation. The effect of high efficiency and high management efficiency

Active Publication Date: 2016-11-16
NINGBO SANXING MEDICAL & ELECTRIC CO LTD
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] Because the total amount of memory in the power consumption information collection system for power users is small, and the memory is divided into multiple physical memory blocks, the following problems will arise when the above three memory management methods are applied to the power consumption information collection system for power users: the compiled Excessively large execution files lead to low memory allocation efficiency, occupy a large program storage area, low operating efficiency, and are not suitable for power consumption information collection systems for power users with small total memory; multiple physical memory blocks need to be managed separately. The efficiency is low; there is no memory overflow detection, and the cause of the system crash cannot be prompted in a friendly manner when the memory overflows

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0022] The following specific embodiments further describe the present invention, but the present invention is not limited to the following specific embodiments.

[0023] A kind of dynamic memory allocation method, it comprises the following steps:

[0024] (1) Initialize the memory space, set the initial address of the memory, and divide each physical memory block into three parts, which are the first part, the second part and the third part, and each part contains an information node header and a memory block, and the size of the memory block of the first part and the third part of each physical memory block is 0K, and then the second part in all physical memory blocks is combined to form a free memory linked list, and the information node header includes Use status information, size information of the corresponding memory block, and a first pointer pointing to an address of a physical adjacent memory block, and a second pointer and a third pointer are also set in the memory...

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 a memory distributing method, in particular to a dynamic memory distributing method for a user power consuming information acquiring system. The dynamic distribution of an idle memory is realized mainly by setting an idle memory link. According to the dynamic memory distributing method, after compiling, executing files are relatively few, the operation efficiency is relatively high, the management efficiency is relatively high, and the method has a memory overflow detection function.

Description

technical field [0001] The invention relates to the technical field of memory allocation methods, in particular to a dynamic memory allocation method used in a power user information collection system. Background technique [0002] At present, there are mainly the following methods for memory allocation in the power user information collection system in the existing technology: [0003] 1. Use static memory management; [0004] 2. Use the dynamic memory management in the libc library; [0005] 3. Use the dynamic memory management in the newlib library. [0006] Because the total amount of memory in the power consumption information collection system for power users is small, and the memory is divided into multiple physical memory blocks, the following problems will arise when the above three memory management methods are applied to the power consumption information collection system for power users: the compiled Excessively large execution files lead to low memory allocat...

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 Patents(China)
IPC IPC(8): G06F12/02G06F12/06
CPCY02D10/00
Inventor 郑坚江陈杰刘宁
Owner NINGBO SANXING MEDICAL & ELECTRIC CO LTD