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

Method and device for compiling program

A technology for compiling programs and programs, applied in the field of compilation, can solve the problems of being prone to errors, consuming programmers' energy, inconvenient to maintain and transplant, etc., to achieve the effect of improving compilation speed, easy maintenance and transplanting, and quick compilation

Active Publication Date: 2010-04-21
NETPOSA TECH
View PDF0 Cites 47 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] For a project with few source files, it is not difficult to write a Makefile directly according to the Makefile rules, but for a project that contains a large number of source files and has many dependent modules, write a correct Makefile It is not an easy task. Writing a correct Makefile for each project often requires a lot of energy from the programmer, and it is prone to errors, which is not easy to maintain and transplant.

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 for compiling program
  • Method and device for compiling program
  • Method and device for compiling program

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0038] 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.

[0039] see figure 1 The method for compiling a program provided by the embodiment of the present invention includes the following steps:

[0040] S101: Read in the environment parameters input by the user, and configure environment parameter variables;

[0041] S102: calling relevant shell script tools to generate a temporary compilation rule file;

[0042] S103: Referring to the compilation rule temporary file, calling a corresponding compiler to compile th...

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 method and a device for compiling a program. The method comprises the following steps: reading in environmental parameters input by a user and configuring variables of the environmental parameters; calling a related shell script tool to generate a compiling rule temporary file; and quoting the compiling rule temporary file, and calling a corresponding compiler to compile the program. The method and the device can conveniently and quickly finish compiling, are easy to maintain and transplant, and can improve the compiling speed.

Description

technical field [0001] The invention relates to the technical field of compiling, in particular to a method and device for compiling programs. Background technique [0002] Usually, after writing the program code, when using IDE (Integrated Development Environment, integrated development environment) tools to compile the written code under Windows, most IDEs will automatically generate Makefile files, so programmers usually do not need to pay attention to how to To write a Makefile, you only need to run the "compile" provided by the IDE tool after the code is written, and the IDE tool will automatically generate the Makefile, compile it, and get the final result. [0003] However, when programming under linux, programmers have to face the Makefile directly. For example, for a simple program that only contains main.c, the programmer can directly use the gcc compiler when compiling, and use the gcc-o test main.c command to obtain the final executable file test. However, if t...

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/45
Inventor 田海燕郭军
Owner NETPOSA 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