发明名称 GENERATING CODE THAT CALLS FUNCTIONS BASED ON TYPES OF MEMORY
摘要 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.
申请公布号 US2013061007(A1) 申请公布日期 2013.03.07
申请号 US201113225040 申请日期 2011.09.02
申请人 BATES CARY L.;JOHNSON NICHOLAS P.;KING JUSTIN K.;NEE LEE;O'TOOLE SIOBHAN M.;INTERNATIONAL BUSINESS MACHINES CORPORATION 发明人 BATES CARY L.;JOHNSON NICHOLAS P.;KING JUSTIN K.;NEE LEE;O'TOOLE SIOBHAN M.
分类号 G06F12/08 主分类号 G06F12/08
代理机构 代理人
主权项
地址