Method and apparatus for verifying data types to be used for instructions and casting data types if needed
Abstract
A method, apparatus, and computer instructions in a processor for performing arithmetic operations. A data type associated with a particular memory location is used to determine if an operation about to be performed on the data in that location is legal. If the operation requires the data to have a required data type, a determination is made as to whether the operation is a legal operation based on the identified data type and the required data type. If the operation is not legal on the identified type, a determination is made as to whether data can be cast to change the identified data type to the required data type. The data is cast to the required data type if the data can be cast to form modified data, and the arithmetic operation is performed on the modified data. If the data cannot be cast to the Required type, an exception or interrupt is generated.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 25 · Forward citations: 16.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method in a processor in a data processing system for performing arithmetic operations on data, the method comprising: responsive to a request for an arithmetic operation on data in a memory location, determining whether the arithmetic operation requires the data to have a required data type; responsive to the arithmetic operation requiring the required data type, identifying a data type for the data to form an identified data type, wherein the data type for the data is specified in metadata that is associated with the data and wherein the metadata is generated by a compiler that identifies
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 16 total)
References Cited — Backward Prior Art (25)
Non-Patent Literature (5)
- Alexander et al. Method and Apparatus for Data-Aware Hardware Operations.
- Alexander et al. Method and Apparatus for Hardware Awareness of Data Types.
- Alexander et al. Method and Apparatus for Identifying Access States for Variables.
- Alexander et al. Method and Apparatus for Implementing Assertions in Hardware.
- Tanenbaum, Andrew S. "Structured Computer Organization." pp. 11-12. Prentice-Hall, 1984, second edition.