Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Processing method based on type conversion of cfg file and application of processing method based on type conversion of cfg file

A type conversion and processing method technology, applied in the field of software reliability, can solve problems such as difficulty in recording, inability to track and record type conversion, inability to support virtual function calls, etc., and achieve the effect of small space occupation

Active Publication Date: 2015-01-28
陕西善思恒慧科技有限公司
View PDF3 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Due to the simplicity of C++ statements, the explicit and implicit type conversions are not written in a unified way, so it is particularly difficult to analyze the format and record the memory when processing type conversions
[0003] The current function call analysis tools cannot support virtual function calls, the essential reason is that they cannot track and record type conversions

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
  • Processing method based on type conversion of cfg file and application of processing method based on type conversion of cfg file

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0042] The method in this embodiment refers to the storage model and recording method of type conversion information when analyzing the function call relationship based on the cfg intermediate file generated by the C++ program compilation. By designing the variable storage model, the object type can be tracked during the function call and can be called Find the real function exactly when member function.

[0043] Specifically, a method for processing type conversion based on a cfg file containing a type tree is to process the codes in the cfg file item by item, and the item-by-item processing includes extracting statements satisfying the type conversion mode and storing them separately, and performing the following steps:

[0044] Step 1. Define the type conversion mode and storage structure;

[0045] Type conversion, according to the inheritance relationship of the class, is divided into two types: upward and downward; according to the writing method, it is divided into two t...

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 processing method based on type conversion of a cfg file and application of the processing method based on type conversion of the cfg file. The processing method is characterized in that one-by-one processing is carried out on codes in the cfg file; the one-by-one processing includes the step that statements meeting a defined type conversion mode are extracted and stored, wherein firstly, the type conversion mode and a storage structure are defined; secondly, the statements, meeting the type conversion mode, in the cfg file are extracted and stored according to different types. By means of the processing method and the application, in the simulated program execution process, less extra space is used, and the virtual function calling function is achieved.

Description

technical field [0001] The invention belongs to the field of software reliability, in particular to a method for recording variable types and memory objects during type conversion in the simulation process of an intermediate cfg file based on C++ compilation. Background technique [0002] The cfg file is an intermediate file generated during the compilation of a C++ program, which records all the formatted information of the program in units of functions. There is a many-to-one relationship between the statements in the cfg file and the statements in the C++ source program, and one C++ statement may be divided into multiple cfg statements. Due to the consideration of simplification of C++ statements, the explicit and implicit type conversions are not written in a unified way, so it is particularly difficult to analyze the format and record the memory when processing type conversions. [0003] Current function call analysis tools cannot support virtual function calls, and th...

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): G06F17/30
CPCG06F16/116G06F16/172G06F16/1727
Inventor 顾乃杰杜云开任开新黄双玲
Owner 陕西善思恒慧科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products