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

Methods and means for function calls

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

Inactive Publication Date: 2017-09-29
IBM CORP
View PDF6 Cites 0 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
  • Methods and means for function calls
  • Methods and means for function calls
  • Methods and means for function calls

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, that is: 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 "s...

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 present invention discloses a method and device for function calling. The method includes: in response to detecting a function call in a program, acquiring a plurality of candidate code modules for executing the function call, the plurality of The candidate code modules respectively conform to multiple calling conventions; obtain the specific calling convention adopted by the called function; according to the obtained specific calling convention, select from the multiple candidate code modules that conform to the specific calling convention code module to execute the function call. The means correspond to the method. The method and device of the present invention can ensure the matching of calling conventions between the caller and the called party of the function, and avoid problems caused by inconsistency of calling conventions.

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 called party 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 spe...

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 Patents(China)
IPC IPC(8): G06F9/44
CPCG06F9/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