Supercharge Your Innovation With Domain-Expert AI Agents!

Programming language pointer type Cache attribute extension method

A pointer type and attribute extension technology, applied in code compilation, program code conversion, software engineering design, etc., can solve the problem of not being able to adapt to the storage structure well, to improve usability, reduce power consumption, and reduce complexity Effect

Pending Publication Date: 2022-03-22
JIANGNAN INST OF COMPUTING TECH
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The existing programming language pointer type does not have the Cache attribute, so it cannot be well adapted to the new storage structure

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
  • Programming language pointer type Cache attribute extension method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0023] Embodiment: the present invention provides a kind of programming language pointer type Cache attribute extension method, based on the following configuration:

[0024] Extend the Cache attribute of the pointer type. The Cache attribute has two values: cached and uncached. If you access data through a pointer whose value is cached, the data will enter the Cache during the access process; if you access data through a pointer whose value is uncached, the data will not Enter Cache;

[0025] Cache attribute initialization, allowing to set the initial value for the Cache attribute of the pointer variable when the pointer variable is declared;

[0026] Cache attribute setting, allowing dynamic setting and modification of the Cache attribute value of the pointer variable in the program statement;

[0027] Cache sub-property settings, specifically:

[0028] Cache write hint segment attribute setting, write hint to the specified space in the use of program execution statement, ...

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 programming language pointer type Cache attribute expansion method, which is based on the following configuration: expanding the Cache attribute of a pointer type, the Cache attribute having a cached value and an uncached value, initializing the Cache attribute, and allowing to set an initial value for the Cache attribute of a pointer variable when the pointer variable is declarated; cache attribute setting: allowing dynamic setting and modification of a Cache attribute value of a pointer variable in a program statement; cache write suggestion segment sub-attribute setting indicates that write operation is immediately carried out on a specified address space; and setting the sub-attributes of the private segment of the Cache, and indicating that the access to the specified address space is private, wherein the action range is the subsequent for, whil, do-whil, if statements or {} included composite statements. The method is convenient for programmers to improve the program access efficiency and reduce the power consumption of the Cache component.

Description

technical field [0001] The invention relates to a programming language pointer type Cache attribute extension method, which belongs to the technical field of programming language design. Background technique [0002] The pointer type is a basic data type in programming languages ​​such as C language, and accessing data through pointers is a common data access method. [0003] Using weakly consistent memory such as SPM as a cache can reduce chip area and power consumption, and is widely used in high-performance and embedded chips, but the way that SPM is completely controlled by user programs increases the burden on programmers. Allowing SPM to be dynamically configured as a hardware cache according to program needs and to dynamically determine whether data enters the cache during program running has become a new trend in the development of cache structures, which can balance usability and power consumption. The existing programming language pointer type does not have the Ca...

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): G06F8/41
CPCG06F8/443G06F8/441
Inventor 方燕飞李雁冰董恩铭文延华于康杨小川刘齐
Owner JIANGNAN INST OF COMPUTING TECH
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