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

Monitoring method and device for multi-compiler hybrid compilation for static analysis

A static analysis and compiler technology, applied in hardware monitoring, code compilation, instrumentation, etc., can solve the problems of no source file distinction, no compiler extraction, and the inability to provide solutions for multi-compiler mixed compilation projects, etc.

Pending Publication Date: 2021-02-12
北京轩宇信息技术有限公司
View PDF2 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

These two patents use the compiler to analyze the intermediate files generated by the makefile processing to extract the source file dependencies, but they do not distinguish between the source files compiled by different compilers, and do not extract the built-in header files of the compiler. macro information
Therefore, it is not possible to provide a solution for multi-compiler mixed compilation projects
[0005] Lack of complete compilation parameters and environment configuration will cause errors in the pre-compilation process of static analysis, resulting in static analysis failure or inaccurate results

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
  • Monitoring method and device for multi-compiler hybrid compilation for static analysis
  • Monitoring method and device for multi-compiler hybrid compilation for static analysis
  • Monitoring method and device for multi-compiler hybrid compilation for static analysis

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0056] refer to figure 1 , which shows a flow chart of the steps of a static analysis multi-compiler mixed compilation monitoring method provided by an embodiment of the present invention, as shown in figure 1 As shown, the monitoring method for static analysis of multi-compiler mixed compilation may specifically include the following steps:

[0057] Step 101: Obtain the program compilation log corresponding to the program to be analyzed.

[0058] The embodiment of the present invention can be applied in the scenario of performing configurable compilation monitoring on projects compiled by multiple compilers.

[0059]The program to be analyzed refers to the source code program compiled by multiple compilers that needs to be monitored.

[0060] In some examples, the program to be analyzed may be a source code program currently written by business personnel and needs to be compiled by a compiler.

[0061] In some examples, the program to be analyzed may also be a program stor...

Embodiment 2

[0113] refer to figure 2 , which shows a schematic structural diagram of a multi-compiler mixed-compiler monitoring device for static analysis provided by an embodiment of the present invention, as shown in figure 2 As shown, the monitoring device for static analysis of multi-compiler mixed compilation may specifically include the following modules:

[0114] A program compilation log acquisition module 210, configured to acquire a program compilation log corresponding to the program to be analyzed;

[0115] Compilation command identification module 220, used to identify and obtain the compilation command according to the program compilation log;

[0116] The conversion and compilation parameter acquisition module 230 is used to design a general configuration file model according to the compilation command, and map the program compilation log to the configuration file model to obtain converted compilation parameters;

[0117] The compilation information extraction module 240 ...

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 discloses a monitoring method and device for multi-compiler hybrid compilation for static analysis. The method comprises the steps of obtaining a program compiling logcorresponding to a to-be-analyzed program; identifying to obtain a compiling command according to the program compiling log; designing a universal configuration file model according to the compiling command, and mapping the program compiling log to the configuration file model to obtain converted compiling parameters; and extracting compiling information corresponding to the to-be-analyzed programaccording to the type of the compiler. According to the embodiment of the invention, configurable compiling monitoring can be carried out on items compiled by multiple compilers in a mixed manner.

Description

technical field [0001] The invention relates to the technical field of static analysis compilation monitoring, in particular to a monitoring method and device for static analysis multi-compiler mixed compilation. Background technique [0002] Static analysis is an important step in the software development process. It can find possible problems in the program without running the program. [0003] Static analysis of a software project needs to be configured according to the actual compilation of the project, such as valid source files, referenced header files, and macros during project compilation. The more complex the project, the more cumbersome the content that needs to be configured. Only manual configuration is inefficient and error-prone. [0004] Compilation monitoring refers to a technology that monitors the compilation process of a project to automatically obtain options and configurations for project compilation. Compiler monitoring technology is an effective solu...

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): G06F8/41G06F11/30G06F11/34
CPCG06F8/41G06F11/3476G06F11/302G06F11/3051
Inventor 陈睿江云松丁戈王峥李杨肖志恒贾春鹏高栋栋于婷婷朱玉钊
Owner 北京轩宇信息技术有限公司