发明申请
- 专利标题: Extensible type system for representing and checking consistency of program components during the process of compilation
- 专利标题(中): 用于在编译过程中表示和检查程序组件的一致性的可扩展类型系统
-
申请号: US10607601申请日: 2003-06-27
-
公开(公告)号: US20040268328A1公开(公告)日: 2004-12-30
- 发明人: Mark Ronald Plesko , David Read Tarditi JR.
- 申请人: Microsoft Corporation
- 申请人地址: null
- 专利权人: Microsoft Corporation
- 当前专利权人: Microsoft Corporation
- 当前专利权人地址: null
- 主分类号: G06F009/45
- IPC分类号: G06F009/45
摘要:
A representation of types, type-checker, and compiler are provided for checking consistency in various forms of an intermediate language. Type-checking a programming language in a compiler is accomplished by taking one or more rule sets as input to a type-checker, which selects one or more of the rule sets based upon any one, or combination of two or more, of numerous criteria. Among them are stage of compilation, source language, architecture, and level of typing present in the language being type-checked. The language is then type-checked using the selected one or more rule sets. The rule sets can include one rule set corresponding to strong type-checking, one rule set corresponding to weak type-checking, and one rule set corresponding to representation type-checking. In the alternative, a compiler can be provided with a type-checker that constructs the one or more sets of rules at runtime from a larger set of rules based on any one, or combination of two or more, of the previously mentioned criteria.
公开/授权文献
信息查询