Extensible type system for representing and checking consistency of program components during the process of compilation
Abstract
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.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 44 · Forward citations: 46.
Claims (3 — 1 Independent, 2 Dependent)
- Claim 1Independent Claim
A method of type-checking a programming language in a compiler according to one or more rule sets comprising: selecting one or more of the rule sets based upon the present stage of compilation; and type-checking the programming language based on the selected one or more rule sets; wherein the one or more rule sets comprise one rule set corresponding to strong type-checking, one corresponding to weak type-checking, and one corresponding to representation type-checking.
- Claim 2Depends on #1
The method of claim 1 wherein type-checking the programming language comprises type-checking each of a plurality of intermediate representations of the programming language.
- Claim 3Depends on #2
The method of claim 2 wherein the selected one or more rule sets are different for each representation.
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (15 of 46 total)
References Cited — Backward Prior Art (44)
Non-Patent Literature (5)
- "1.3 Compiler Architecture" http://lambda.uta.edu/cse5317/notes/node5.html visited on May 20, 2003; pp 1-2.
- "A Paralellizing Compiler Framework" http://www.csrd.uiuc.edu/promis/home.html visited on Jun. 4, 2003; pp 1-2.
- "Attribute-Based Templates for Microsoft .NET", 2001, newtelligence AG, 7 pages.
- "C/C++ Language Reference: try-except Statement," May 11, 2000, Microsoft Corp., accessed Jul. 10, 2005 at <http://msdn.microsoft.com/library/default.asp?url=/library/enus/vccelng/htm/key<SUB>-</SUB>s-z<SUB>-</SUB>4.asp>, 2 pages.
- "CIL: Infrastructure for C Program Analysis and Transformation"; May 30, 2003; pp. 1-54.