A type theory for memory allocation and data layout
Leaf Petersen, Robert W. Harper, Karl Crary et al. · ACM SIGPLAN Notices · 2003
Ordered type theory is an extension of linear type theory in which variables in the context may be neither dropped nor re-ordered. This restriction gives rise to a natural notion of adjacency . We show that a language based on ordered types can use this property to give an exact account of the layout of data in memory. The fuse constructor from ordered logic describes adjacency of values in memory, and the mobility modal describes pointers into the heap. We choose a particular allocation model based on a common implementation scheme for copying garbage collection and show how this permits us to separate out the allocation and initialization of memory locations in such a way as to account for optimizations such as the coalescing of multiple calls to the allocator.
Cited by 3 works. doi:10.1145/640128.604147
Authors
References
- Lecture Notes in Computer Science 1205
- TIL
- From system F to typed assembly language
- The design and implementation of a certifying compiler
- Eliminating array bound checking through dependent types
- A certifying compiler for Java
- A judgmental reconstruction of modal logic
- Flexible type analysis
- Quasi-linear types
- Semantics of memory management for polymorphic languages