Browse Prior Art Database

Optimal Library File Generator for Efficient Program Compilation

IP.com Disclosure Number: IPCOM000114826D
Original Publication Date: 1995-Feb-01
Included in the Prior Art Database: 2005-Mar-29
Document File: 2 page(s) / 31K

Publishing Venue

IBM

Related People

Kuse, K: AUTHOR

Abstract

Disclosed is a system for generating an optimal library file. Using this file instead of a set of original library files decreases the time needed to compile a program.

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

Optimal Library File Generator for Efficient Program Compilation

      Disclosed is a system for generating an optimal library file.
Using this file instead of a set of original library files decreases
the time needed to compile a program.

      When a program uses library programs, it needs to specify the
names of their files.  Before compiling the program, the compiler
expands the library files into it according to their names.  Each
library file includes multiple functions and procedures, and
consequently the expanded program includes a full set of these
functions and procedures.  As a result, the size of the expanded
program is huge, and then its compilation time becomes
correspondingly long, even though it uses just a subset of the
functions and procedures.  Our system (1) analyzes a program, (2)
extracts functions and procedures actually needed for compiling the
program, and (3) makes one optimal library file by combining them.

      For example, a program consisting of 44 lines of C++ code uses
8,579 lines of library programs, of which the system extracts to
create an optimal library program that is less than one twenty- fifth
of the original size.  The compilation times in the each case were
3.21 sec and 0.45 sec, respectively.  This is a reduction of over
80%.  Programmers can compile programs much faster by using optimal
library files generated by the disclosed system.