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

Memory use method and device

A memory and utilization technology, applied in the computer field, can solve the problems of discontinuous address and inaccurate method of chip memory resource utilization, and achieve the effect of improving utilization, accurate utilization and reasonable allocation

Active Publication Date: 2019-09-27
WEICHAI POWER CO LTD
View PDF8 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] When the compiler compiles, the address of the variable in the memory usually needs to be aligned with its byte length. Therefore, the interleaved definition of variables with different byte lengths may cause discontinuity in the address allocated by the compiler to the variable. Therefore, the above method obtains The method of chip memory resource usage is not accurate

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
  • Memory use method and device
  • Memory use method and device
  • Memory use method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0029] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0030] figure 1 The flow of the memory usage method provided by the embodiment of this application Figure 1 , the memory usage method provided in this embodiment can be applied to a memory usage device. The device for using memory may be a computer or a part of the computer, and the computer may be a terminal, such as a vehicle-mounted terminal...

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 embodiment of the invention provides a memory use method and device. The method comprises the steps of acquiring the total address range of a memory allocated to a processing unit; obtaining each sub-address range corresponding to the compiled file during code compilation; according to the total address range and each sub-address range corresponding to the compiled file, determining the memory utilization rate of the processing unit; and using the unused memory in the memory according to the utilization rate. The memory utilization rate of the processing unit obtained in the embodiment of the invention is relatively accurate, the unused memory in the memory is used according to the utilization rate of the memory distributed to the processing unit, reasonable distribution of the memory of the processing unit can be realized, and the memory utilization rate of the processing unit is improved.

Description

technical field [0001] The embodiments of the present invention relate to computer technology, and in particular, to a memory usage method and device. Background technique [0002] With the rapid development of the computer field, data storage plays an increasingly important role in this field. The effective utilization of chip storage resources has received extensive attention. [0003] The current method of counting the utilization rate of chip memory resources is mainly to read the last address of the used chip memory resources from the compiled file generated by compilation, subtract the first address of the chip memory resources, and obtain the used chip memory resources. On-chip memory resources and Unused on-chip memory resources get on-chip memory resource usage. [0004] When the compiler compiles, the address of the variable in the memory usually needs to be aligned with its byte length. Therefore, the interleaved definition of variables with different byte lengt...

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 WEICHAI POWER CO LTD