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

Method and device used for processing source file

A source file and source processing technology, applied in the field of compilation, can solve the problem that recompilation takes tens of minutes or even longer, and achieve the effect of reducing the number and the compilation time

Active Publication Date: 2016-02-17
IBM CORP
View PDF5 Cites 25 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

At this point, it may take tens of minutes or even longer to recompile all source code

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
  • Method and device used for processing source file
  • Method and device used for processing source file
  • Method and device used for processing source file

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0021] Preferred embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although preferred embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.

[0022] figure 1 A block diagram of an exemplary computer system / server 12 suitable for use in implementing embodiments of the invention is shown. figure 1 The computer system / server 12 shown is only an example and should not impose any limitation on the function and scope of use of the embodiments of the present invention.

[0023] Such as figure 1 As shown, computer system / server 12 takes the form of a general purpose computing device. ...

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 relates to a method and a device used for processing a source file, and provides a method used for processing the source file to generate an object file. The method comprises the following steps: obtaining a header file referred by the source file; responding when the source file calls data symbols defined in the header file, and creating the indicators of the definitions of the data symbols, wherein the definitions of different data symbols correspond to different indicators; and adding the indicator into a compiling result obtained by compiling the source file to generate an object file. The invention also provides a method used for processing the source file. The method comprises the following steps: responding when the header file referred by the source file is updated, and looking up the definition of the data symbol called by the source file from the header file; creating the indicator of the definition of the data symbol; and responding when the indicator is matched with the indicator in the object file generated from the source file, and notifying that the source file does not need to be re-compiled. The method and the device can record a dependency relationship between the source file and the header file, and an amount of the source files which need to be re-complied is lowered on the basis of the dependency relationship.

Description

technical field [0001] Various embodiments of the present invention relate to the field of compiling, and more particularly, to methods and devices for processing source files to generate object files. Background technique [0002] With the development of computer technology, a large number of programming languages ​​have appeared. And, the source code (sourcecode) of many programming languages ​​at present involves multiple types of file formats, for example, for C language, the source code can include source file (for example, *.c file) and header file (headerfile) ( For example, *.h file); and for another example, for C++ language, the source code may include source file (for example, *.cpp file) and header file (for example, *.h and *.hpp file). [0003] Generally speaking, the source file can be used to save the specific implementation of the program (for example, the main code part), and the header file can save the interface of the program (for example, the definitio...

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/44
CPCG06F8/48G06F8/423
Inventor 毛一赠张青山纪金松刘严
Owner IBM CORP
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