Function compiling method and device
A compiling method and function technology, which is applied in the computer field, can solve the problem of high development cost of custom Hook functions, and achieve the effect of reducing development cost
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0063] According to an embodiment of the present invention, a method embodiment of a function compiling method is provided.
[0064] Optionally, in this embodiment, the above function compilation method can be applied to such as figure 2 In the hardware environment constituted by the server 102 and the terminal 104 as shown. Such as figure 2 As shown, the server 102 is connected to the terminal 104 through a network. The above-mentioned network includes but not limited to: a wide area network, a metropolitan area network or a local area network. The terminal 104 is not limited to a PC, a mobile phone, a tablet computer, and the like. The function compiling method in the embodiment of the present invention may be executed by the server 102 , may also be executed by the terminal 104 , and may also be executed jointly by the server 102 and the terminal 104 . Wherein, the execution of the function compiling method in the embodiment of the present invention by the terminal 104 ...
Embodiment 2
[0154] According to an embodiment of the present invention, a function compiling device for implementing the above function compiling method is also provided.
[0155] Figure 20 is a schematic diagram of an optional function compiling device according to an embodiment of the present invention, such as Figure 20 As shown, the device may include:
[0156] The hooking unit 22 is used to hook the second function obtained by compiling the first function into the custom proxy function to obtain a function call pointer, wherein the first function is a hooked function written in the first programming language, and the second The code in the function is allowed to be directly executed by the CPU, and the function call pointer is used to call the second function; the registration unit 24 is used to register the function call pointer, so that the function call pointer is allowed to be called by code written in the first programming language; The compiling unit 26 is configured to com...
Embodiment 3
[0174] According to an embodiment of the present invention, a terminal for implementing the above function compilation method is also provided.
[0175] Figure 22 is a structural block diagram of a terminal according to an embodiment of the present invention, such as Figure 22 As shown, the terminal may include: one or more (only one is shown in the figure) processor 201, memory 203, and transmission device 205, such as Figure 22 As shown, the terminal may also include an input and output device 207 .
[0176] Wherein, the memory 203 can be used to store software programs and modules, such as the program instructions / modules corresponding to the function compilation method and device in the embodiment of the present invention, and the processor 201 executes various functions by running the software programs and modules stored in the memory 203. A function application and data processing, that is, realizing the above-mentioned function compilation method. The memory 203 m...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


