Hot patching method and hot patching equipment
A technology of hot patching and equipment, applied in the field of communication, can solve problems such as the inability to provide hot patching solutions
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0038] A thermal patch method provided by Embodiment 1 of the present invention, such as figure 1 As shown, the details are as follows:
[0039] S101 , extend the compiler and add compilation options.
[0040] Extend the compiler and add extended compilation options to the compiler. Such as: gcc-O2-c foo.c-ffunc_entry_insns=function_entry.S, where ffunc_entry_insns is a new compilation option after compiler extension, where function_entry.S is a custom inserted assembly instruction, which neither controls the operation of the machine It is also not compiled into machine code, it can only be recognized by the assembler and instructs the assembly how to proceed.
[0041] S102. When compiling, insert a custom instruction sequence for the function by extending the new compilation option of the compiler.
[0042] In the specific implementation process, by extending the new compilation option of the compiler, the custom instruction sequence inserted into the function can be flexi...
Embodiment 2
[0082] A kind of hot patch method that the embodiment 2 of the present invention provides, such as figure 2 As shown, the details are as follows:
[0083] S201 , extending the compiler to add a compilation option.
[0084] Extend the compiler and add extended compilation options to the compiler. For example: gcc-O2-c foo.c-ffunc_entry_insns=function_entry.S where ffunc_entry_insns is a new compilation option after compiler extension, and function_entry.S is a self-defined inserted assembly instruction.
[0085] S202. When compiling, insert a custom instruction sequence for the function at the head of the function by extending the new compilation option of the compiler.
[0086] In the specific implementation process, the new compilation option of the extended compiler is a custom instruction sequence inserted into the function, and the custom instruction sequence is inserted in the function header. Specifically, the foo function is compiled and inserted into the custom inst...
Embodiment 3
[0125] A hot patch device provided by Embodiment 3 of the present invention, such as image 3 As shown, the details are as follows:
[0126] The compiler extension unit 31 is configured to extend the compiler to add compilation options.
[0127] The compiler extension unit extends the compiler and adds extended compilation options to the compiler. Compilation options added to the compiled function after the extended compiler is compiled.
[0128] The compiling unit 32 is configured to insert a custom instruction sequence for the function by extending the newly added compiling options of the compiler when compiling.
[0129] In the specific implementation process, the new compilation option of the compiler is used to insert the custom instruction sequence for the function. The insertion of the custom instruction sequence can be flexibly defined according to the needs of the application scenario, and the custom instruction sequence is inserted immediately before the function hea...
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