Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and device for calling function

A function call and function technology, which is applied in the direction of program control devices, electrical digital data processing, program code conversion, etc., can solve problems that affect the execution performance of function calls and are not practical

Inactive Publication Date: 2014-06-11
IBM CORP
View PDF6 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, this will undoubtedly affect the execution performance of the function call, and it is not practical

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0019] Preferred embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although preferred embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.

[0020] Those skilled in the art know that the present invention can be implemented as a system, method or computer program product. Therefore, the present disclosure can be specifically implemented in the following forms, namely: it can be complete hardware, it can also be complete software (including firmware, resident software, microcode, etc.), and it can also be a combination of hardware and software. Called a "circuit", "module" or "sy...

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 discloses a method and a device for calling a function. The method comprises the steps of: obtaining a plurality of alternate code modules for executing function call in response to the detected function call in program, wherein the plurality of alternate code modules respectively accord with a plurality of call conventions; obtaining the special call convention adopted by the called function; selecting the code module according with the special call convention from the plurality of alternate code modules to execute the function call according to the obtained special call convention. The device is corresponding to the method. According to the method and the device provided by the invention, the matching of the call conventions of a calling party and a called party of the function can be ensured, and problems caused by the inconsistent call conventions can be avoided.

Description

technical field [0001] The present invention relates to function calls in programs, and more specifically, to a method and device for function calls. Background technique [0002] Most high-level programming languages ​​provide the function of calling functions. During the function call, the caller and the callee need to abide by the predetermined calling convention (Calling Convention). Specifically, the calling convention refers to a protocol established in a programming language to implement function calling. This protocol stipulates a variety of operation methods during the calling process, including how to transfer parameters, whether the parameters are variable, who will clean up the stack, and so on. Different languages ​​and different compilers define different calling conventions. For example, VC++6.0 defines the following calling conventions. [0003] _cdecl is the default calling convention used by C / C++ and MFC programs, and it can also be manually specified ...

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): G06F9/44
CPCG06F8/41G06F9/4484
Inventor 官孝峰郭久福蒋健朱鸿伟
Owner IBM CORP
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products