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

Automatic positioning method and device of compiler error

An automatic positioning and compiler technology, applied in the field of compiler development and testing, can solve the problems of slow processing time, complicated preparation work, and inability to further locate functions, etc., and achieve the effect of fast time and simple preparation work

Active Publication Date: 2015-04-08
JIANGNAN INST OF COMPUTING TECH
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0008] 1. Some errors are not caused by a specific optimization of the compiler. At this time, the correct object code set cannot be compiled by adjusting the options. The solution is to use the standard compiler (such as GCC) in the system to generate the correct object code. collection, but after being located in a file, it is impossible to further locate specific functions in the same source file;
[0009] 2. The processing time is slow: the pre-preparation work is more complicated, and the target file set and the function set in the file need to be prepared first. The automatic positioning tool needs to be relinked every time it is processed to generate a new executable program.

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
  • Automatic positioning method and device of compiler error
  • Automatic positioning method and device of compiler error
  • Automatic positioning method and device of compiler error

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0057] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0058] First, a method for automatically locating compiler errors in Embodiment 1 provided by the present invention will be described.

[0059] The purpose of the embodiment of the present invention is to avoid the relinking and compiling operation of the executable program by the compiler by performing the function replacement operation at the executable program level when the program is loaded, and save the time for locating errors. refer to figure 1 As sho...

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 an automatic positioning method and device of a compiler error. The method comprises the following steps of: compiling a source file of an executable program by using the compiler: generating a correct first executable code by using a standard complier and generating a second executable code by using a complier to be error-positioned; reading-in the first executable code and the second executable code by using a program loading tool to finish operation of a first executable program corresponding to the first executable code and a second executable program corresponding to the second executable code; controlling to select functions from the first executable program and the second executable program by using the program loading tool, and realizing positioning of an error function in the second executable program by using a dichotomy and a substitution method. According to the automatic positioning method and device disclosed by the invention, the error can be positioned to be in a function class, the function in the executable codes is directly subjected to error positioning, and the error positioning time is shorter.

Description

technical field [0001] The invention relates to the technical field of compiler development and testing, more specifically, to a method and device for automatically locating compiler errors. Background technique [0002] In the development process of the compiler, the compiler is usually tested by using large-scale application software (for example: SPEC benchmark test package). However, the code volume of large-scale application software is very large, and the number of functions involved is hundreds or even thousands. Once a problem with the compiler causes an error in the application software, it is very time-consuming to locate the problem, and it is difficult to locate the error location and the compiler that caused the error. Quickly locate the cause. Therefore, how to quickly locate the running error is an urgent problem to be solved in the development process of the compiler. [0003] The compilation process of the compiler can be roughly divided into: lexical anal...

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): G06F11/36
Inventor 漆锋滨李中升白书敬姜军张海军王超
Owner JIANGNAN INST OF COMPUTING TECH
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