Invention Grant
- Patent Title: Generating code that calls functions based on types of memory
- Patent Title (中): 根据内存类型生成调用函数的代码
-
Application No.: US13225040Application Date: 2011-09-02
-
Publication No.: US08910136B2Publication Date: 2014-12-09
- Inventor: Cary L. Bates , Nicholas P. Johnson , Justin K. King , Lee Nee , Siobhan M. O'Toole
- Applicant: Cary L. Bates , Nicholas P. Johnson , Justin K. King , Lee Nee , Siobhan M. O'Toole
- Applicant Address: US NY Armonk
- Assignee: International Business Machines Corporation
- Current Assignee: International Business Machines Corporation
- Current Assignee Address: US NY Armonk
- Agent Owen J. Gamon; Roy W. Truelson
- Main IPC: G06F12/08
- IPC: G06F12/08 ; G06F12/06 ; G06F9/44 ; G06F12/02 ; G06F12/10

Abstract:
In an embodiment, in response to reading a declaration of a function that specifies a name of the function and a type of memory on which the function operates, the name of the function, a pointer to the function, and the type are saved to a template. In response to reading a call statement that specifies the name of the function and an identifier of an object, first code is generated. The first code, when executed, reads the pointer to the function from a virtual function table pointed to by the object, finds an entry in the virtual function table that represents the function, and reads the pointer from the entry in the virtual function table. The call statement, when executed, requests a call of the function. Second code is generated that, when executed, calls the function using the pointer read from the virtual function table.
Public/Granted literature
- US20130061007A1 GENERATING CODE THAT CALLS FUNCTIONS BASED ON TYPES OF MEMORY Public/Granted day:2013-03-07
Information query