ANALYSIS OF FUNCTIONAL PROGRAMS TO DETECT RUN-TIME GARBAGE CELLS

被引:23
|
作者
INOUE, K [1 ]
SEKI, H [1 ]
YAGI, H [1 ]
机构
[1] UNIV HAWAII MANOA,HONOLULU,HI 96822
关键词
AUTOMATA THEORY - Formal Languages - COMPUTER PROGRAMMING - Algorithms;
D O I
10.1145/48022.48025
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
We propose a method for detecting the generation of garbage cells by analyzing a source text written in a functional programming language which uses ordinary linked lists to implement list-type values. For a subexpression such as F(G(. . . )) in a program where the function values of F and G are of list type, if a cell c is created during the computation of G and if c does not appear in a list-type value of F, then c becomes a garbage cell at the end of the computation of F. We discuss this problem on the basis of formal languages derived from the functional program text and show some sufficient conditions that predict the generation of garbage cells. Also, we give an efficient algorithm to detect at compile time the generation of garbage cells which are linearly linked. We have implemented these algorithms in an experimental LISP system. By executing several sample programs on the system, we conclude that our method is effective in detecting the generation of garbage cells.
引用
收藏
页码:555 / 578
页数:24
相关论文
共 50 条
  • [1] Run-time profiling of functional logic programs
    Brassel, B
    Hanus, M
    Huch, F
    Silva, J
    Vidal, G
    LOGIC BASED PROGRAM SYNTHESIS AND TRANSFORMATION, 2005, 3573 : 182 - 197
  • [2] Making garbage collection dependable through a run-time monitor
    Lo, CTD
    Proceedings from the Sixth Annual IEEE Systems, Man and Cybernetics Information Assurance Workshop, 2005, : 424 - 425
  • [3] Run-time type checking for binary programs
    Burrows, M
    Freund, SN
    Wiener, JL
    COMPILER CONSTRUCTION, PROCEEDINGS, 2003, 2622 : 90 - 105
  • [4] Approach to the run-time monitoring of parallel programs
    Cai, Wentong
    Turner, Stephen J.
    Computer Journal, 1994, 37 (04): : 333 - 345
  • [5] An Integrity Assurance Mechanism for Run-Time Programs
    Xu, Ziyao
    He, Yeping
    Deng, Lingli
    INFORMATION SECURITY AND CRYPTOLOGY, 2009, 5487 : 389 - 405
  • [6] A SYSTEM FOR ANALYZING ADA PROGRAMS AT RUN-TIME
    HOLDSWORTH, D
    SOFTWARE-PRACTICE & EXPERIENCE, 1983, 13 (05): : 407 - 421
  • [7] AN APPROACH TO THE RUN-TIME MONITORING OF PARALLEL PROGRAMS
    CAI, WT
    TURNER, SJ
    COMPUTER JOURNAL, 1994, 37 (04): : 333 - 345
  • [8] MESSAGE FLOW-ANALYSIS AND RUN-TIME VERIFICATION FOR PARALLEL PROGRAMS
    YANG, SS
    JUANG, JY
    PROCEEDINGS OF THE 1989 INTERNATIONAL CONFERENCE ON PARALLEL PROCESSING, VOL 2: SOFTWARE, 1989, : 19 - 22
  • [9] Run-Time Support for the Automatic Parallelization of Java Programs
    Bryan Chan
    Tarek S. Abdelrahman
    The Journal of Supercomputing, 2004, 28 : 91 - 117
  • [10] Run-time support for the automatic parallelization of Java programs
    Chan, Bryan
    Abdelrahman, Tarek S.
    J Supercomput, 1600, 1 (91-117):