A technique for dynamic term size computation via program transformation

Hermenegildo, Manuel V. and López García, Pedro (1994). A technique for dynamic term size computation via program transformation. Monografía (Technical Report). Facultad de Informática (UPM), Madrid, Spain.

Description

Title: A technique for dynamic term size computation via program transformation
Author/s:
  • Hermenegildo, Manuel V.
  • López García, Pedro
Item Type: Monograph (Technical Report)
Date: March 1994
Subjects:
Freetext Keywords: Term size computation, Granularity analysis, Parallelism, Computación del tamaño de los términos, Análisis de granularidad, Paralelismo.
Faculty: Facultad de Informática (UPM)
Department: Inteligencia Artificial
Creative Commons Licenses: Recognition - No derivative works - Non commercial

Full text

[img]
Preview
PDF - Requires a PDF viewer, such as GSview, Xpdf or Adobe Acrobat Reader
Download (1MB) | Preview

Abstract

Knowing the size of the terms to which program variables are bound at run-time in logic programs is required in a class of applications related to program optimization such as, for example, granularity analysis and selection among different algorithms or control rules whose performance may be dependent on such size. Such size is difficult to even approximate at compile time and is thus generally computed at run-time by using (possibly predefined) predicates which traverse the terms involved. We propose a technique based on program transformation which has the potential of performing this computation much more efficiently. The technique is based on finding program procedures which are called before those in which knowledge regarding term sizes is needed and which traverse the terms whose size is to be determined, and transforming such procedures so that they compute term sizes "on the fly". We present a systematic way of determining whether a given program can be transformed in order to compute a given term size at a given program point without additional term traversal. Also, if several such transformations are possible our approach allows finding minimal transformations under certain criteria. We also discuss the advantages and applications of our technique and present some performance results.

More information

Item ID: 15212
DC Identifier: http://oa.upm.es/15212/
OAI Identifier: oai:oa.upm.es:15212
Official URL: ftp://clip.dia.fi.upm.es/pub/papers/DIRECTORY.html~
Deposited by: Biblioteca Facultad de Informatica
Deposited on: 08 May 2013 07:23
Last Modified: 21 Apr 2016 15:12
  • Logo InvestigaM (UPM)
  • Logo GEOUP4
  • Logo Open Access
  • Open Access
  • Logo Sherpa/Romeo
    Check whether the anglo-saxon journal in which you have published an article allows you to also publish it under open access.
  • Logo Dulcinea
    Check whether the spanish journal in which you have published an article allows you to also publish it under open access.
  • Logo de Recolecta
  • Logo del Observatorio I+D+i UPM
  • Logo de OpenCourseWare UPM