A system and method is provided for facilitating and implementing an
efficient mechanism for doing an interface dispatch. The system and
method retrieves source code and performs a pre-execution or preparation
stage prior to execution of the source code. During the pre-execution
stage memory is allocated for class types, class method tables are formed
and interface virtual tables are formed. A block of memory is also
allocated for an interface map in the form of a vector having a plurality
of slots. The system and method packs the interface map with references
to the interface virtual table locations utilizing a comb-vector
technique.