Parameter transmission method and device, computer equipment and storage medium

A technology for computer equipment and parameter transfer, applied in the field of programming, can solve the problems of bloated code, unable to guarantee function reserved parameters, increase memory overhead, etc., to achieve the effect of improving the success rate, reducing memory overhead, and simplifying function code

Pending Publication Date: 2021-06-01
BIGO TECH PTE LTD
View PDF0 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, since different functions may be written by different developers, there is no guarantee that reserved parameters are s

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
  • Parameter transmission method and device, computer equipment and storage medium
  • Parameter transmission method and device, computer equipment and storage medium
  • Parameter transmission method and device, computer equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0027] In order to make the purpose, technical solution and advantages of the present application clearer, the implementation manners of the present application will be further described in detail below in conjunction with the accompanying drawings.

[0028] The "plurality" mentioned herein means two or more. "And / or" describes the association relationship of associated objects, indicating that there may be three types of relationships, for example, A and / or B may indicate: A exists alone, A and B exist simultaneously, and B exists independently. The character " / " generally indicates that the contextual objects are an "or" relationship.

[0029] For the convenience of understanding, the nouns involved in the embodiments of the present application are described below.

[0030] Stack Frame: A fragment of the function in the entire stack. Every time a function is called, an independent stack frame will be maintained on the call stack. Each independent stack frame generally inclu...

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 discloses a parameter transmission method and device, computer equipment and a storage medium, and belongs to the technical field of programming. The method comprises the steps that a to-be-transmitted parameter is generated in response to a first function, the to-be-transmitted parameter is written into a first stack frame through the first function, and the first stack frame is a stack frame corresponding to the first function; the ith function is called through the first function, when the first function calls the i-th function, the first function is called through an i-1 layer, and i is an integer larger than or equal to 2; and the to-be-transmitted parameter is read from the first stack frame through the ith function. In the embodiment of the invention, parameter transmission is realized by utilizing the stack frame, and reserved parameters do not need to be set in the function, so that the problem of parameter transmission failure caused by the fact that the reserved parameters are not set in the function when the function is written by different developers is avoided, the success rate of parameter transmission is improved, function codes are simplified, and the memory overhead in the running process is reduced.

Description

technical field [0001] The embodiments of the present application relate to the technical field of programming, and in particular to a parameter transmission method, device, computer equipment, and storage medium. Background technique [0002] Passing parameters is a process of passing parameters between functions through calls. [0003] In order to ensure normal parameter passing, reserved parameters need to be set in the function for parameter passing. For example, when the A function needs to pass the generated parameter a to the C function through the B function, both the B function and the C function need to set a reserved parameter for passing the parameter a. [0004] However, since different functions may be written by different developers, there is no guarantee that reserved parameters are set in the functions, and setting reserved parameters in functions will cause code bloat and increase memory overhead during operation. Contents of the invention [0005] Embo...

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
IPC IPC(8): G06F8/30G06F8/20
CPCG06F8/315G06F8/24G06F8/37
Inventor 杨秋华
Owner BIGO TECH PTE 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