Patch generation method and device, electronic device and computer program product

A patch and file technology, applied in the computer field, can solve the problems of increased time cost, low work efficiency, poor portability, etc., and achieve the effect of reducing the number

Active Publication Date: 2018-11-23
NANJING ZGMICRO CO LTD
View PDF15 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Benefits of technology

This technology allows users to create new versions of software without manually generating them. It uses an improved way to modify existing files instead of relying solely upon human input like copying data from diskettes into RAM. Users only have to import these changes once they start working properly onto their computer's hard drive. Overall this improves efficiency while reducing costs compared to previous methods such as manual patching techniques.

Problems solved by technology

Technically speaking, current methods for automatically creating new versions of an integrated circuit card require extensive effort and resources. These techniques involve burning out existing modules after they were designed without errors, leading to wasted hardware components and reduced usages. Therefore, these technical improvements aim at reducing complexity and redundancy requirements associated with automatic generations of customized firmware updates over large chips.

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
  • Patch generation method and device, electronic device and computer program product
  • Patch generation method and device, electronic device and computer program product
  • Patch generation method and device, electronic device and computer program product

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0021] Such as figure 2 As shown, this embodiment proposes a patch generation method, the method comprising:

[0022] S101. Receive a patch source code file.

[0023] Specifically, the patch source code file is a source code file generated after modifying the original source code file, and the patch source code file includes one or more modified functions with a single entry.

[0024] When multiple modified functions exchange information, it can be strictly required to be passed in the form of parameters, and it is forbidden to define new global variables that are only used to transfer information in these specific functions. At the same time, when programming the original source code, if the realization of a certain function is still uncertain, a certain empty stub function (StubFunction) can be reserved in the original source code, so that the function can be implemented in the stub function. To increase or modify, to realize the addition or modification of functions.

...

Embodiment 2

[0053] This embodiment proposes a patch generation device, the device includes a processor, and the processor is configured with processor-executable operation instructions, so as to execute each step in the method described in Embodiment 1. The specific working principle is as follows Figure 4 As shown, the processor in the patch generation device described in this embodiment includes:

[0054] The patch assembly code file generation module is used to receive the patch source code file, and compile the patch source code file to generate the patch assembly code file;

[0055] A compiler, configured to compile the patch assembly code file to generate a patch object code file of a single patch channel. In this embodiment, the compiler can choose ARMCC in the Keil tool chain of ARM company or open-source GCC.

[0056] Specifically, the patch source code file is a source code file generated after modifying the original source code file, and the patch source code file includes o...

Embodiment 3

[0081] This embodiment provides an electronic device, the electronic device includes: a display, a memory, one or more processors; and one or more modules, the one or more modules are stored in the memory, and Configured to be executed by the one or more processors, the one or more modules include instructions for executing each step in the method described in Embodiment 1.

[0082] The electronic device in this embodiment can automatically generate patches, making up for the defects of traditional manually generated patches. The patch source code file contains multiple modified functions, so all the modifications are concentrated in one or several functions of a single entry, so as to reduce the number of patch channels. In addition, the patch generation method proposed by the present invention can be used in conjunction with the ROM version of the embedded chip, so that the latter initially has the chip performance of the on-chip flash memory version, and the cost is increas...

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 provides a patch generation method. The patch generation method comprises the following steps: receiving a patch source code file, wherein the patch source code file isa source code file generated after modifying the original source code file, and the patch source code file includes one or more modified functions having a single entry; compiling the patch source code file to generate a patch assembly code file; and compiling the patch assembly code file to generate a patch target code file of a single patch channel. The embodiment of the invention also providesa patch generation device, an electronic device and a computer program product. The invention can automatically generate patches, so as to make up for the defects of the traditional manual generationof patches.

Description

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

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
Owner NANJING ZGMICRO CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products