Browse Prior Art Database

Method Compiling Mechanism to Optimize Dynamic Object Oriented Languages

IP.com Disclosure Number: IPCOM000117870D
Original Publication Date: 1996-Jul-01
Included in the Prior Art Database: 2005-Mar-31
Document File: 2 page(s) / 57K

Publishing Venue

IBM

Related People

Nakamura, H: AUTHOR [+2]

Abstract

Disclosed is a mechanism for reducing the size of virtual images and shortening the response times of dynamic object-oriented languages.

This text was extracted from an ASCII text file.
This is the abbreviated version, containing approximately 66% of the total text.

Method Compiling Mechanism to Optimize Dynamic Object Oriented Languages

      Disclosed is a mechanism for reducing the size of virtual
images and shortening the response times of dynamic object-oriented
languages.

      In dynamic object-oriented languages such as Smalltalk, there
are no distinctions between the objects that form systems, libraries,
and user applications, and all of them are included in a single
virtual image.  Their systems compile all methods simultaneously when
they file in external programs or when methods are invalidated by
adding instance variables to existing classes.  Therefore, their
virtual images are large and their systems' response times are poor.

      This mechanism delays the compilation of methods until they are
executed for the first time.  In this mechanism, the compilation of
methods is separated into two phases, pre-compilation and
post-compilation.  In pre-compilation phase, their systems scan the
whole source code and make the proxies of compiled methods.  The
proxies hold only the position and the length of method definitions
in the corresponding source code.  Consequently, their size is
smaller than that of the compiled methods which include byte code,
and their systems' response times for pre-compilation are shorter
than that of conventional compilation.  Their systems invoke the
post-compilation phase when each pre-compiled method is executed for
the first time.  They consult the information held by their p...