Invention Grant
- Patent Title: Compiler with user-defined type inference rules
- Patent Title (中): 具有用户定义类型推理规则的编译器
-
Application No.: US12819400Application Date: 2010-06-21
-
Publication No.: US08549502B2Publication Date: 2013-10-01
- Inventor: Parry Jones Reginald Husbands
- Applicant: Parry Jones Reginald Husbands
- Applicant Address: US WA Redmond
- Assignee: Microsoft Corporation
- Current Assignee: Microsoft Corporation
- Current Assignee Address: US WA Redmond
- Main IPC: G06F9/45
- IPC: G06F9/45

Abstract:
Performance of a program written in dynamic languages is improved through the use of a compiler that provides type inference for methods having a user-defined element. The user-defined element may be an input in a user-defined type. Though, the user-defined element may reflect that the method is user-defined. Type inference may be performed based on a user-defined mapping, relating input types to output types for one or more methods. The mapping may be specified as a data table provided to the compiler or as one or more functions that register with the compiler such that, as the compiler processes portions of a source program and detects a method with a user-defined element, the compiler may access the mapping and infer the type of an output of the method. The inferred type may then be used to optimize code dependent on that output.
Public/Granted literature
- US20110314459A1 COMPILER WITH USER-DEFINED TYPE INFERENCE RULES Public/Granted day:2011-12-22
Information query