COMPILER DISPATCH FUNCTION FOR OBJECT-ORIENTED C

Patent №

US 5,960,197

Granted

1999-09-28

Filed 1996

Owner

SUN MICROSYSTEMS, INC.

Lab

AI components

2

kr · hardware

Assignment

Recorded

Dataset

AIPD

2023_r1 edition

Application

08644041

A compiler is described that generates instructions to execute object-oriented method call invocations in an efficient manner. Specifically, a method dispatch operation distinguishes between those method calls that do not require dynamic invocation from those that do, and optimizes the instructions generated to perform the former. For each object class declaration encountered during compilation, a dispatch array is created. Each dispatch array contains entries for all method calls which can be made to the class, including those implemented in an ancestor class(es), and all protocols adopted by these classes. As each method call is parsed during compilation, if the compiler finds an entry for the calling method in a dispatch table, an instruction to call a non-dynamic method dispatch function is generated. If, on the other hand, no entry for the calling method is found in a dispatch array, the compiler generates a conventional dynamic method dispatch instruction. The non-dynamic method dispatch function uses the dispatch array to directly identify the calling method's executable code segment. Use of non-dynamic method invocation can provide a substantial speed gain during program execution.

AI classification

AI hardware0.59
Knowledge representation0.52
Evolutionary computation0.04
Natural language0.02
Vision0.00
Planning0.00
Machine learning0.00
Speech0.00

Ownership

SUN MICROSYSTEMS, INC.

assignment · 80160267

Assignors

SEGMAN, MARINO

On an employer assignment, the assignors are typically the inventors.

© 2026 NYSGPT2525 LLC