DSpace About DSpace Software
 

Demetrius at The Australian National University >
ePrints >
ePrints >

Please use this identifier to cite or link to this item: http://hdl.handle.net/1885/40783

Title: Dynamic dispatch in object-oriented languages
Authors: Milton, Scott
Schmidt, Heinz
Department of Computer Science, FEIT
ANU
Keywords: object-oriented programming
C++
Eiffel
Sather
dynamic binding
compilers
optimization
algorithms
design
languages
benchmarks
dynamic dispatch
efficiency
object-oriented runtime system
multiple inheritance
Issue Date: 19-May-2004
Abstract: Dynamic binding in object-oriented languages is perhaps the most important semantic aspect of these languages. At the same time it can contribute to inefficiency and lack of robustness because it incurs lookup overheads on function calls and hinders the compiler determining the exact type of objects held in variables or returned by functions. This may, for instance, preclude inlining of small functions or attribute offset computation at compile time. Yet attribute accesses are the most frequently executed operations. As a result, to regain lost performance, OO programmers are tempted to break the encapsulation of classes or want explicit control over dynamic dispatch, trading off extensibility. In the implementation of parallel object-oriented languages the additional complication arises that object accesses may require more expensive remote memory accesses. Lookup at the call may be inappropriate if the code has to be executed on a different processor and there perhaps has a different address. This paper summarizes dispatching as addressed in several modern object-oriented languages. We then describe and benchmark fast and exible dispatch schemes that we are currently implementing on SPARC based workstations and multi-processors. These involve elements of C++ virtual function tables and Eiffel's and Sather's ability to redefine abstract functions as attributes. Initial benchmarks seem to promise improved efficiency on a range of modern RISC based architectures.
URI: http://hdl.handle.net/1885/40783
Appears in Collections:ePrints

Files in This Item:

File Description SizeFormat
1626-01.2003-07-09T02:02:33Z.xsh356 BUnknownView/Open
TR-CS-94-02.pdf217.07 kBAdobe PDFView/Open

Items in DSpace are protected by copyright, with all rights reserved, unless otherwise indicated.

 

Valid XHTML 1.0! DSpace Software Copyright © 2002-2007 MIT and Hewlett-Packard - Feedback