On the impact of naming methods for heap-oriented pointers in C programs

Tong Chen, Jin Lin, Wei Chung Hsu, Pen Chung Yew

Research output: Chapter in Book/Report/Conference proceedingConference contribution

2 Scopus citations

Abstract

Many applications written in C allocate memory blocks for their major data structures from the heap space at run time. The analysis of heap-oriented pointers in such programs is critical for compilers to generate high-performance code. However, most previous research on pointer analysis mostly focuses on pointers pointing to global or local variables. In this paper, we study points-to analysis of heap-oriented pointers using profiling information. An instrumentation tool and a set of library routines are developed to measure points-to sets of memory references at run time. Different naming methods for heap-oriented pointers are studied. We found that it is very important to adopt appropriate naming methods to recognize wrapper functions for memory allocation and memory management functions defined by users. Based on these naming methods, the approaches in pointer analysis, such as flow sensitivity and context sensitivity, are examined with the run-time tool. The program characteristics are observed at run time to evaluate what kind of compiler analysis is needed. Experiments are conducted on SPEC CPU2000 integer benchmarks. We found that flow sensitivity and context sensitivity have little impact on the analysis of heap-oriented pointers.

Original languageEnglish (US)
Title of host publicationProceedings - International Symposium on Parallel Architectures, Algorithms and Networks, I-SPAN 2002
EditorsD. Frank Hsu, Rafael P. Saldana, Oscar H. Ibarra
PublisherIEEE Computer Society
Pages251-256
Number of pages6
ISBN (Electronic)0769515797
DOIs
StatePublished - 2002
EventInternational Symposium on Parallel Architectures, Algorithms and Networks, I-SPAN 2002 - Makati, Manila, Philippines
Duration: May 22 2002May 24 2002

Publication series

NameProceedings of the International Symposium on Parallel Architectures, Algorithms and Networks, I-SPAN
Volume2002-January

Other

OtherInternational Symposium on Parallel Architectures, Algorithms and Networks, I-SPAN 2002
Country/TerritoryPhilippines
CityMakati, Manila
Period5/22/025/24/02

Bibliographical note

Publisher Copyright:
© 2002 IEEE.

Keywords

  • Computer science
  • Instruments
  • Memory management
  • Optimized production technology
  • Optimizing compilers
  • Program processors
  • Read only memory
  • Runtime
  • Shape
  • Testing

Fingerprint

Dive into the research topics of 'On the impact of naming methods for heap-oriented pointers in C programs'. Together they form a unique fingerprint.

Cite this