发明名称 MULTI-SIZED DATA TYPES FOR MANAGED CODE
摘要 Embodiments are directed towards generating applications that include multi-sized types running in managed code. During the compilation of an intermediate language version of an application, if a multi-size type is encountered, a runtime engine may perform actions to process the multi-size types. Accordingly, architecture information associated with the target computer may be determined. Data types corresponding to the architecture of the target computer and the multi-sized types may be determined based on the architecture information. Native code calls associated with an intermediate language code calls may be determined such that the parameters of the native code calls match the architecture dependent data types. And, a machine code version of the intermediate language code call may be generated. The generated machine code version of the intermediate language code may be executed with the data types specific to the target computer.
申请公布号 US2016132303(A1) 申请公布日期 2016.05.12
申请号 US201514936546 申请日期 2015.11.09
申请人 Xamarin Inc. 发明人 de Icaza Miguel;Kumpera Rodrigo;Pouliot Sebastien;Kvinge Rolf Bjarne;Bockover Aaron Dean;Varga Zoltan
分类号 G06F9/45 主分类号 G06F9/45
代理机构 代理人
主权项 1. A method for providing an application using a computer that performs actions, comprising: when a multi-size type is provided during compilation of the application into a machine code version of the application, performing actions, including: employing architecture information of a target computer to identify one or more data types associated with the target computer that correspond to the multi-sized type;employing parameters of one or more native code calls associated with an intermediate language code call to identify matching of the one or more native code calls with the one or more data types;providing a machine code version of the intermediate language code call that corresponds to the architecture information and also corresponds to the one or more native code calls;when the target computer provides for just-in-time compiling, employing a run time engine to execute, on the target computer, a machine code version of the intermediate language code call having one or more values that correspond to the multi-size type and the one or more data types, wherein the one or more native code calls are executed using the one or more data types that correspond to the architecture information; andwhen the target computer provides for disabling just-in-time compiling, inserting the machine code version of the intermediate language code call in the machine code version of the application.
地址 San Francisco CA US