Transcription of Fast dynamic casting - Bjarne Stroustrup
{{id}} {{{paragraph}}}
SOFTWARE PRACTICE AND EXPERIENCES oftw. Pract. ;36:139 156 Published online 15 September 2005 in Wiley InterScience ( ). DOI: dynamic castingMichael Gibbs1, , and Bjarne Stroustrup21 Lockheed Martin Aerospace, MZ 6602, Box 748, Fort Worth, TX 76101, of Computer Science, TAMU 3112, Texas A&M University, College Station, TX 77843, describe a scheme for implementing dynamic casts suitable for systems where the performance andpredictability of performance is essential. A dynamic cast from a base class to a derived class in an object-oriented language can be performed quickly by having the linker assign an integer type ID to each simple integer arithmetic operation verifies whether the cast is legal at run time.
FAST DYNAMIC CASTING 141 The trick lies in finding a functionF that satisfies this criterion and in determining the size of the integer necessary to accommodate realistic software projects. We would prefer 32- or 64-bit integers
Domain:
Source:
Link to this page:
Please notify us if you found a problem with this document:
{{id}} {{{paragraph}}}