Skip to main content

A New Dependence Test Based on Shape Analysis for Pointer-Based Codes

  • Conference paper
Languages and Compilers for High Performance Computing (LCPC 2004)

Part of the book series: Lecture Notes in Computer Science ((LNTCS,volume 3602))

Abstract

The approach presented in this paper focus on detecting data dependences induced by heap-directed pointers on loops that access dynamic data structures. Knowledge about the shape of the data structure accessible from a heap-directed pointer, provides critical information for disambiguating heap accesses originating from it. Our approach is based on a previously developed shape analysis that maintains topological information of the connections among the different nodes (memory locations) in the data structure. Basically, the novelty is that our approach carries out abstract interpretation of the statements being analyzed, and let us annotate the memory locations reached by each statement with read/write information. This information will be later used in order to find dependences in a very accurate dependence test which we introduce in this paper.

This work was supported in part by the Ministry of Education of Spain under contract TIC2003-06623.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Corbera, F., Asenjo, R., Zapata, E.L.: A framework to capture dynamic data structures in pointer-based codes. Transactions on Parallel and Distributed System 15(2), 151–166 (2004)

    Article  Google Scholar 

  2. Ghiya, R., Hendren, L.J.: Putting pointer analysis to work. In: Proc. 25th Annual ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages, San Diego, California, January 1998, pp. 121–133 (1998)

    Google Scholar 

  3. Ghiya, R., Hendren, L.J., Zhu, Y.: Detecting parallelism in c programs with recursive data strucutures. In: Proc. 1998 International Conference on Compiler Construction, March 1998, pp. 159–173 (1998)

    Google Scholar 

  4. Hendren, L.J., Nicolau, A.: Parallelizing programs with recursive data structures. IEEE Transactions on Parallel and Distributed Systems 1, 35–47 (1990)

    Article  Google Scholar 

  5. Hortwitz, S., Pfeiffer, P., Repps, T.: Dependence analysis for pointer variables. In: Proc. ACM SIGPLAN1989 Conference on Programming Language Design and Implementation, July 1989, pp. 28–40 (1989)

    Google Scholar 

  6. Hummel, J., Hendren, L.J., Nicolau, A.: A general data dependence test for dynamic, pointer-based data structures. In: Proc. ACM SIGPLAN1994 Conference on Programming Language Design and Implementation, June 1994, pp. 218–229 (1994)

    Google Scholar 

  7. Hwang, Y.S., Saltz, J.: Identifying parallelism in programs with cyclic graphs. In: Proc. 2000 International Conference on Parallel Processing, Toronto, Canada, August 2000, pp. 201–208 (2000)

    Google Scholar 

  8. Hwang, Y.S., Saltz, J.: Identifying parallelism in programs with cyclic graphs. Journal of Parallel and Distributed Computing 63(3), 337–355 (2003)

    Article  MATH  Google Scholar 

  9. Larus, J.R., Hilfinger, P.N.: Detecting conflicts between structure accesses. In: Proc. ACM SIGPLAN1988 Conference on Programming Language Design and Implementation, July 1988, pp. 21–34 (1988)

    Google Scholar 

  10. Shapiro, M., Horwitz, S.: Fast and accurate flow-insensitive points-to analysis. In: Proc. 24th Annual ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages, Paris, France, January 1997, pp. 1–14 (1997)

    Google Scholar 

  11. Parr, T.J., Quong, R.W.: ANTLR: A predicated-LL(k) parser generator. Journal of Software Practice and Experience 25(7), 789–810 (1995)

    Article  Google Scholar 

  12. Wilson, R.P., Lam, M.S.: Efficient context-sensitive pointer analysis for C programs. In: Proc. ACM SIGPLAN1995 Conference on Programming Language Design and Implementation, La Jolla, California, June 1995, pp. 1–12 (1995)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2005 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Navarro, A., Corbera, F., Asenjo, R., Tineo, A., Plata, O., Zapata, E.L. (2005). A New Dependence Test Based on Shape Analysis for Pointer-Based Codes. In: Eigenmann, R., Li, Z., Midkiff, S.P. (eds) Languages and Compilers for High Performance Computing. LCPC 2004. Lecture Notes in Computer Science, vol 3602. Springer, Berlin, Heidelberg. https://doi.org/10.1007/11532378_28

Download citation

  • DOI: https://doi.org/10.1007/11532378_28

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-28009-5

  • Online ISBN: 978-3-540-31813-2

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics