Proceedings of the 2012 ACM Conference on High Integrity Language Technology 2012
DOI: 10.1145/2402676.2402692
|View full text |Cite
|
Sign up to set email alerts
|

Implementation of a simple dimensionality checking system in Ada 2012

Abstract: We present the design and implementation of a dimensionality checking system in Ada 2012. The system is implemented in the GNAT compiler, and performs compile-time checks to verify the dimensional consistency of physical computations. The system allows the user to define his own system of units, and imposes no run-time changes nor multiple compilation passes on the user.

Help me understand this report

Search citation statements

Order By: Relevance

Paper Sections

Select...
1
1

Citation Types

0
2
0

Year Published

2017
2017
2020
2020

Publication Types

Select...
1
1

Relationship

0
2

Authors

Journals

citations
Cited by 2 publications
(2 citation statements)
references
References 2 publications
0
2
0
Order By: Relevance
“…It does not appear to support the implicit definition of conversion between units but if extended to do so, would need to contend with the problem of commuting graphs. The same is true for F# which has support for units of measure [4] and Ada's GNAT compiler [6].…”
Section: Related Workmentioning
confidence: 77%
“…It does not appear to support the implicit definition of conversion between units but if extended to do so, would need to contend with the problem of commuting graphs. The same is true for F# which has support for units of measure [4] and Ada's GNAT compiler [6].…”
Section: Related Workmentioning
confidence: 77%
“…We also want to introduce a feature that is not part of the SPARK language itself, but an implementation-defined extension of the GNAT compiler, and thus available for SPARK programs. Since Ada 2012, the GNAT compiler offers a dimension system for numeric types through implementation-defined aspects [9]. The dimension system can consist of up to seven base dimensions, and physical quantities are declared as subtypes, annotated with the exponents of each dimension.…”
Section: The Gnat Dimensionality Checking Systemmentioning
confidence: 99%