[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to main content

A Simple and General Method for Integrating Abstract Interpretation in SICStus

  • Conference paper
Principles and Practice of Declarative Programming (PPDP 1999)

Part of the book series: Lecture Notes in Computer Science ((LNCS,volume 1702))

  • 389 Accesses

Abstract

We study the problem of producing a good compiler for Prolog that generates efficient code for its input programs on the basis of the information inferred by a static analysis of those programs.

The main contribution of our work is to show that in many cases such an optimizing compiler can be obtained by a simple modification of an already existing Prolog compiler.

Our general method is illustrated by describing how the SICStus compiler has been modified in such a way that it uses information about uninitialized variables in order to generate better code than that it would generate without that information. We give tables that measure the costs and advantages of producing that optimizing SICStus compiler. In order to show the generality of our approach, we present also the design of a simple modification of SICStus compiler incorporating recursively dereferenced variables.

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

Access this chapter

Subscribe and save

Springer+ Basic
£29.99 /Month
  • Get 10 units per month
  • Download Article/Chapter or eBook
  • 1 Unit = 1 Article or 1 Chapter
  • Cancel anytime
Subscribe now

Buy Now

Chapter
GBP 19.95
Price includes VAT (United Kingdom)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
GBP 35.99
Price includes VAT (United Kingdom)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
GBP 44.99
Price includes VAT (United Kingdom)
  • 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.

Similar content being viewed by others

References

  1. Ait-Kaci, H.: Warren’s Abstract Machine. The MIT Press, Cambridge (1991), Prepared with LATEX

    Google Scholar 

  2. Baldan, D.: An Abstract Interpretation Framework for WAM Level Properties. PhD hesis, Department of Pure and Applied Mathematics, University of Padova, Italy (1999)

    Google Scholar 

  3. Bigot, P.A., Gudeman, D., Debray, S.K.: Output value placement in moded Logic programs. In: van Hentenryck, P. (ed.) Logic Programming – Proceedings of the Eleventh International Conference on Logic Programming, pp. 175–189. The MIT Press, Cambridge (1994) Massachusetts Institute of Technology

    Google Scholar 

  4. Cousot, P., Cousot, R.: Abstract interpretation: a unified lattice model for static analysis of programs by construction or approximation of fixpoints. In: Fourth ACM symposium on Principles of Programming Languages, Los Angeles, california, pp. 238–252. ACM Press, New York (1977)

    Chapter  Google Scholar 

  5. Grassi, A.: L’individuazione dei Termini Ricorsivamente Dereferenziati nei Programmi Prolog. PhD thesis, Università degli Studi di Padova (March 1998)

    Google Scholar 

  6. Le Charlier, B., Van Hentenryck, P.: Experimental evaluation of a generic abtract interpretation algorithm for PROLOG. ACM Transactions on Programming Languages and Systems 16(1), 35–101 (1994)

    Article  Google Scholar 

  7. Lindgren, T.: Polyvariant detection of uninitialized arguments of prolog predicates. Journal of Logic Programming 28(3), 217–229 (1996)

    Article  MATH  MathSciNet  Google Scholar 

  8. Lloyd, J.W.: Foundation of Logic Programming, 2nd edn. Springer, Heidelberg (1988)

    Google Scholar 

  9. Mulkers, A.: Live Data Structures in Logic Programs. LNCS, vol. 675. Springer, Heidelberg (1993)

    Google Scholar 

  10. Somogyi, Z., Henderson, F., Conway, T., Jeffery, D.: The Mercury Language Reference Manual (1997)

    Google Scholar 

  11. Taylor, A.: Removal of dereferencing and trailing in prolog compilation. In: Levi, G., Martelli, M. (eds.) Proceedings of the 6th International Conference on Logic Programming (ICLP 1989), Lisbon, Portugal, pp. 48–62. MIT Press, Cambridge (1989)

    Google Scholar 

  12. Taylor, A.: High Performance Prolog Implementation. PhD thesis, Basser Department of Computer Science, University of Sydney (June 1991)

    Google Scholar 

  13. Van Roy, P.L.: Can Logic Programming Execute as Fast as Imperative Programing. PhD thesis, Computer Science Division, University of California Berkeley (December 1990)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 1999 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Baldan, D., Civran, N., Filé, G., Pulvirenti, F. (1999). A Simple and General Method for Integrating Abstract Interpretation in SICStus. In: Nadathur, G. (eds) Principles and Practice of Declarative Programming. PPDP 1999. Lecture Notes in Computer Science, vol 1702. Springer, Berlin, Heidelberg. https://doi.org/10.1007/10704567_13

Download citation

  • DOI: https://doi.org/10.1007/10704567_13

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-66540-3

  • Online ISBN: 978-3-540-48164-5

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics