Patch generation method, device, electronic device and computer storage medium
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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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 select ARMCC or open-source GCC in the Keil tool chain of ARM Company.
[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 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 increased by less than...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com