Back to search

University of Manitoba

A statistical analysis of the benefits of partial evaluation on C function calls

Abstract

dc:description.abstract

Partial evaluation is a source-to-source program transformation technique which substitutes the constant or known part of the input at compilation time to get an updated program. To help make decisions as to what kind of partial evaluation to implement, statistics have been collected on the use of translation-time constant arguments in C language source code. Source code from three important projects coded in C was analyzed: the X-Windows library, the LINUX operating system, and the Gnu C compiler "gcc." These projects also present typical modern uses of the C language. The frequency of constant arguments in argument lists can have important implication of the worth of certain code improvement strategies. Specifically, compiler writers and partial-evaluator designers can benefit from these statistics if they are planning to do any of the following: replacing calls of functions with all constant arguments by function results, unfolding function calls, or specializing functions for specific values of actual arguments. The statistics collected show that these partial evaluation techniques can yield significant performance improvement for some projects, at reasonable costs in memory usage.

Degree

thesis:*
Level thesis:degree_level
Master of Science (M.Sc.)
Discipline thesis:degree_discipline
Computer Science
Year dc:date.issued
1997

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Liang, Linda L.

Rights

Language dc:language.iso
eng

Identifiers

dc:identifier.*
Handle dc:identifier.uri
http://hdl.handle.net/1993/1009

Chain of custody

source
Harvested from
University of Manitoba
Base URL
mspace.lib.umanitoba.ca/oai/request
Last updated
2026-11-19
Source record
OAI-PMH GetRecord
citation

Liang, Linda L.. A statistical analysis of the benefits of partial evaluation on C function calls. Master of Science (M.Sc.) thesis, 1997. http://hdl.handle.net/1993/1009