Safe and Flexible Dynamic Linking of Native Code
Title | Safe and Flexible Dynamic Linking of Native Code |
Publication Type | Book Chapters |
Year of Publication | 2001 |
Authors | Hicks MW, Weirich S, Crary K |
Editor | Harper R |
Book Title | Types in Compilation |
Series Title | Lecture Notes in Computer Science |
Volume | 2071 |
Pagination | 147 - 176 |
Publisher | Springer Berlin / Heidelberg |
ISBN Number | 978-3-540-42196-2 |
Abstract | We present the design and implementation of the first complete framework for flexible and safe dynamic linking of native code. Our approach extends Typed Assembly Language with a primitive for loading and typechecking code, which is flexible enough to support a variety of linking strategies, but simple enough that it does not significantly expand the trusted computing base. Using this primitive, along with the ability to compute with types, we show that we can program many existing dynamic linking approaches. As a concrete demonstration, we have used our framework to implement dynamic linking for a type-safe dialect of C, closely modeled after the standard linking facility for Unix C programs. Aside from the unavoidable cost of verification, our implementation performs comparably with the standard, untyped approach. |
URL | http://dx.doi.org/10.1007/3-540-45332-6_6 |