Unlock instant, AI-driven research and patent intelligence for your innovation.

Dynamic calling method and device for function

A technology of dynamic calling and function calling, which is applied in the field of computer processing and can solve the problems of function execution that cannot have the number of parameters and functions that cannot be called.

Active Publication Date: 2018-07-20
LOONGSON TECH CORP
View PDF6 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The present invention provides a method and device for dynamically calling a function, which is used to solve the problem in the prior art that the function whose number of parameters has not been determined cannot be executed, and the corresponding function cannot be called

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
  • Dynamic calling method and device for function
  • Dynamic calling method and device for function
  • Dynamic calling method and device for function

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0046] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0047] figure 1 The flow chart of the function dynamic call method provided by Embodiment 1 of the present invention, such as figure 1 As shown, the method of the present embodiment includes:

[0048] Step 101. Obtain a packaged message, the packaged message includes an execution function, and the execution function includes at least one pa...

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 provides a dynamic calling method and device for a function. The method comprises the following steps that: obtaining a packaging message, wherein the packaging message comprises an execution function, and the execution function comprises at least one parameter; according to a function calling appointment ABI (Application Binary Interface) way, storing the parameter; determining theaddress of the current execution position of the execution function; calling and executing a called function corresponding to the execution function, and determining the return value of the called function; and according to the address of the execution position, returning to the execution position of the execution function to continuously execute a program behind the execution position of the execution function, and storing a return value. When a compilation language which finishes being compiled is executed to effectively determine the parameter in the function, an operation of calling a context by the execution function is finished, and the execution and the calling of the function are finished.

Description

technical field [0001] The invention relates to computer processing technology, in particular to a method and device for dynamically calling a function. Background technique [0002] In computer programming, it is usually necessary to compile a high-level language into assembly language so that the computer executes the assembly language. [0003] However, in the prior art, in the process of compiling high-level language into assembly language, the parameters in the function of assembly language cannot be determined at that time, and it is necessary to determine the number of parameters in the function when the compiled assembly language is executed. number; at this time, the existing technology cannot execute the function whose number of parameters has not been determined, nor can it call the corresponding function. Contents of the invention [0004] The present invention provides a function dynamic call method and device, which are used to solve the problem in the prior...

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): G06F8/41
CPCG06F8/41
Inventor 朱琛
Owner LOONGSON TECH CORP