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

Method for simplifying source code based on Makefile source code simplifying device

A source code simplifier and source code technology, applied in the direction of program control devices, etc., can solve the problems of reducing analysis speed, time consumption, and huge Linux source code, and achieve the effect of reducing difficulty and quantity

Inactive Publication Date: 2014-10-08
XIDIAN UNIV
View PDF2 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] The Linux kernel customization on embedded devices, especially the modification at the source code level, often faces such a problem: the Linux source code is very large, and developers must analyze it with the help of tools, but there are often problems that have nothing to do with customization. Some source codes, greatly slowing down the analysis speed
[0007] For the above two solutions, no matter which one is, there is no way to remove unnecessary irrelevant redundant code in the Linux kernel source code, so there will be such a problem: for a kernel function or variable, in the process of a search In many cases, code analysts must manually remove those search results that they do not need, which is extremely time-consuming
[0008] In addition, existing Linux analysis tools can only run on desktops or laptops, and users cannot read and modify the code anytime and anywhere, and cannot see the modified results at the same time

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 for simplifying source code based on Makefile source code simplifying device
  • Method for simplifying source code based on Makefile source code simplifying device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0028] In order to make the objects and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the examples. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0029] The source code of Linux is very large, and developers must use tools to analyze it, but there are often some source codes that have nothing to do with customization, which greatly reduces the analysis speed. For this reason the present invention adopts such as figure 1 The technical solution shown is implemented, and the source code is simplified by using the Makefile-based source code refiner. The specific operations are:

[0030] The source code reducer is connected to the remote Linux server through the internet, and the network card in the source code reducer receives the source code from the server and transmits it to the reduction...

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 for simplifying a source code based on a Makefile source code simplifying device. The method comprises the steps: the source code simplifying device is connected with a far terminal Linux server through the Internet, and a network card in the source code simplifying device receives source codes from the server and transmits the source codes to a simplifying module to be simplified; the simplifying module simplifies the sound codes, the relationship between a kernel source code file and a catalogue and configuration options is extracted from Makefile of a Linux kernel, and then through scanning .config files, kernel configuration options are obtained; then, source code files and the catalogue which are not checked and correspond to the configuration options are all deleted and displayed to a user; the user can examine the codes, or modify the codes, or note the codes, look for the codes and add bookmarks to the codes; the codes which are updated are uploaded to the server through the Internet. The method is implemented through the scheme, so that the number of kernel sound codes can be substantially reduced, and the difficulty of analysing and positioning by developers is reduced.

Description

technical field [0001] The invention relates to the field of simplification and decoding of Linux servers, in particular to a method for simplification of source code by a Makefile-based source code simplifier. Background technique [0002] The Linux kernel customization on embedded devices, especially the modification at the source code level, often faces such a problem: the Linux source code is very large, and developers must analyze it with the help of tools, but there are often problems that have nothing to do with customization. Some source codes significantly slow down the analysis speed. For example: in the root directory of the source code, the developer wants to use a text search tool to locate the usage of a variable, but the result shows a series of results under drivers that the developer does not need to consider at all (because many non-embedded device drivers will also use this variable). This undoubtedly greatly reduces the development efficiency. [0003]...

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
Inventor 苏锐丹李航白晓颖
Owner XIDIAN UNIV
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