Invention Grant
- Patent Title: Compile-time bounds checking for user-defined types
- Patent Title (中): 编译时间范围检查用户定义的类型
-
Application No.: US12892291Application Date: 2010-09-28
-
Publication No.: US08533695B2Publication Date: 2013-09-10
- Inventor: Daniel Stephen Harvey
- Applicant: Daniel Stephen Harvey
- Applicant Address: US WA Redmond
- Assignee: Microsoft Corporation
- Current Assignee: Microsoft Corporation
- Current Assignee Address: US WA Redmond
- Agency: Ogilvie Law Firm
- Main IPC: G06F9/44
- IPC: G06F9/44 ; G06F9/45

Abstract:
Compile-time optimized bounds checking of user-defined types is provided. A user-defined class has an annotated memory-accessing method, and an annotated bound-providing member such as an integer field containing a bound or a method that returns a bound when called. The user-defined-bounds check may supply bounds checking where the programming language has none, or it may supplement existing bounds checks, e.g., by wrapping a built-in array type or a garbage-collector-managed type. Bounds checking can be extended beyond arrays and other types whose layout is controlled by a compiler, allowing efficient systems programming in a managed code environment. A bounds-check representation is inserted by the compiler in intermediate language code. Optimization then reduces duplicative bounds checking.
Public/Granted literature
- US20120079465A1 COMPILE-TIME BOUNDS CHECKING FOR USER-DEFINED TYPES Public/Granted day:2012-03-29
Information query