An Optimizing Compiler for CLP(R). Kelly, A. D., Macdonald, A., Marriott, K., Søndergaard, H., Stuckey, P. J., & Yap, R. H. C. In Montanari, U. & Rossi, F., editors, Principles and Practice of Constraint Programming—CP'95, volume 976, of Lecture Notes in Computer Science, pages 222–239, 1995. Springer. doi abstract bibtex The considerable expressive power and flexibility gained by combining constraint programming with logic programming is not without cost. Implementations of constraint logic programming (CLP) languages must include expensive constraint solving algorithms tailored to specific domains, such as trees, Booleans, or real numbers. The performance of many current CLP compilers and interpreters does not encourage the widespread use of CLP. We outline an optimizing compiler for CLP(R), a CLP language which extends Prolog by allowing linear arithmetic constraints. The compiler uses sophisticated global analyses to determine the applicability of different program transformations. Two important components of the compiler, the analyzer and the optimizer, work in continual interaction in order to apply semantics-preserving transformations to the source program. A large suite of transformations are planned. Currently the compiler applies three powerful transformations, namely ``solver bypass'', ``dead variable elimination'' and ``nofail constraint detection''. We explain these optimizations and their place in the overall compiler design and show how they lead to performance improvements on a set of benchmark programs.
@Inproceedings{Kel-Mac-Mar-Son-Stu-Yap_CP95,
author = {Andrew D. Kelly and
Andrew Macdonald and
Kim Marriott and
Harald S{\o}ndergaard and
Peter J. Stuckey and
Roland H. C. Yap},
title = {An Optimizing Compiler for {CLP(R)}},
editor = {U. Montanari and F. Rossi},
booktitle = {Principles and Practice of Constraint Programming---CP'95},
series = {Lecture Notes in Computer Science},
volume = {976},
pages = {222--239},
publisher = {Springer},
year = {1995},
doi = {10.1007/3-540-60299-2_14},
abstract = {The considerable expressive power and flexibility gained by
combining constraint programming with logic programming
is not without cost. Implementations of constraint logic
programming (CLP) languages must include expensive constraint
solving algorithms tailored to specific domains, such as trees,
Booleans, or real numbers. The performance of many current CLP
compilers and interpreters does not encourage the widespread
use of CLP. We outline an optimizing compiler for
CLP(R), a CLP language which extends Prolog by
allowing linear arithmetic constraints. The compiler uses
sophisticated global analyses to determine the applicability of
different program transformations. Two important components of
the compiler, the <i>analyzer</i> and the <i>optimizer</i>,
work in continual interaction in order to apply
semantics-preserving transformations to the source program.
A large suite of transformations are planned. Currently the
compiler applies three powerful transformations, namely
``solver bypass'', ``dead variable elimination'' and
``nofail constraint detection''. We explain these optimizations
and their place in the overall compiler design and show how
they lead to performance improvements on a set of benchmark
programs.},
keywords = {Constraint programming, Logic programming, Static analysis, Program transformation, Compilation},
}
Downloads: 0
{"_id":"9AR757KKQK7Pn7AsK","bibbaseid":"kelly-macdonald-marriott-sndergaard-stuckey-yap-anoptimizingcompilerforclpr-1995","author_short":["Kelly, A. D.","Macdonald, A.","Marriott, K.","Søndergaard, H.","Stuckey, P. J.","Yap, R. H. C."],"bibdata":{"bibtype":"inproceedings","type":"inproceedings","author":[{"firstnames":["Andrew","D."],"propositions":[],"lastnames":["Kelly"],"suffixes":[]},{"firstnames":["Andrew"],"propositions":[],"lastnames":["Macdonald"],"suffixes":[]},{"firstnames":["Kim"],"propositions":[],"lastnames":["Marriott"],"suffixes":[]},{"firstnames":["Harald"],"propositions":[],"lastnames":["Søndergaard"],"suffixes":[]},{"firstnames":["Peter","J."],"propositions":[],"lastnames":["Stuckey"],"suffixes":[]},{"firstnames":["Roland","H.","C."],"propositions":[],"lastnames":["Yap"],"suffixes":[]}],"title":"An Optimizing Compiler for CLP(R)","editor":[{"firstnames":["U."],"propositions":[],"lastnames":["Montanari"],"suffixes":[]},{"firstnames":["F."],"propositions":[],"lastnames":["Rossi"],"suffixes":[]}],"booktitle":"Principles and Practice of Constraint Programming—CP'95","series":"Lecture Notes in Computer Science","volume":"976","pages":"222–239","publisher":"Springer","year":"1995","doi":"10.1007/3-540-60299-2_14","abstract":"The considerable expressive power and flexibility gained by combining constraint programming with logic programming is not without cost. Implementations of constraint logic programming (CLP) languages must include expensive constraint solving algorithms tailored to specific domains, such as trees, Booleans, or real numbers. The performance of many current CLP compilers and interpreters does not encourage the widespread use of CLP. We outline an optimizing compiler for CLP(R), a CLP language which extends Prolog by allowing linear arithmetic constraints. The compiler uses sophisticated global analyses to determine the applicability of different program transformations. Two important components of the compiler, the <i>analyzer</i> and the <i>optimizer</i>, work in continual interaction in order to apply semantics-preserving transformations to the source program. A large suite of transformations are planned. Currently the compiler applies three powerful transformations, namely ``solver bypass'', ``dead variable elimination'' and ``nofail constraint detection''. We explain these optimizations and their place in the overall compiler design and show how they lead to performance improvements on a set of benchmark programs.","keywords":"Constraint programming, Logic programming, Static analysis, Program transformation, Compilation","bibtex":"@Inproceedings{Kel-Mac-Mar-Son-Stu-Yap_CP95,\n author = {Andrew D. Kelly and \n\t\tAndrew Macdonald and \n\t\tKim Marriott and\n \tHarald S{\\o}ndergaard and \n\t\tPeter J. Stuckey and \n\t\tRoland H. C. Yap},\n title = {An Optimizing Compiler for {CLP(R)}},\n editor = {U. Montanari and F. Rossi},\n booktitle = {Principles and Practice of Constraint Programming---CP'95},\n series = {Lecture Notes in Computer Science},\n volume = {976},\n pages = {222--239},\n publisher = {Springer},\n year = {1995},\n doi = {10.1007/3-540-60299-2_14},\n abstract = {The considerable expressive power and flexibility gained by \n\t\tcombining constraint programming with logic programming\n\t\tis not without cost. Implementations of constraint logic \n\t\tprogramming (CLP) languages must include expensive constraint \n\t\tsolving algorithms tailored to specific domains, such as trees,\n\t\tBooleans, or real numbers. The performance of many current CLP\n\t\tcompilers and interpreters does not encourage the widespread \n\t\tuse of CLP. We outline an optimizing compiler for \n\t\tCLP(R), a CLP language which extends Prolog by \n\t\tallowing linear arithmetic constraints. The compiler uses \n\t\tsophisticated global analyses to determine the applicability of\n\t\tdifferent program transformations. Two important components of \n\t\tthe compiler, the <i>analyzer</i> and the <i>optimizer</i>, \n\t\twork in continual interaction in order to apply \n\t\tsemantics-preserving transformations to the source program.\n\t\tA large suite of transformations are planned. Currently the \n\t\tcompiler applies three powerful transformations, namely \n\t\t``solver bypass'', ``dead variable elimination'' and\n\t\t``nofail constraint detection''. We explain these optimizations\n\t\tand their place in the overall compiler design and show how \n\t\tthey lead to performance improvements on a set of benchmark \n\t\tprograms.},\n keywords = {Constraint programming, Logic programming, Static analysis, Program transformation, Compilation},\n}\n\n","author_short":["Kelly, A. D.","Macdonald, A.","Marriott, K.","Søndergaard, H.","Stuckey, P. J.","Yap, R. H. C."],"editor_short":["Montanari, U.","Rossi, F."],"key":"Kel-Mac-Mar-Son-Stu-Yap_CP95","id":"Kel-Mac-Mar-Son-Stu-Yap_CP95","bibbaseid":"kelly-macdonald-marriott-sndergaard-stuckey-yap-anoptimizingcompilerforclpr-1995","role":"author","urls":{},"keyword":["Constraint programming","Logic programming","Static analysis","Program transformation","Compilation"],"metadata":{"authorlinks":{}},"html":""},"bibtype":"inproceedings","biburl":"https://people.eng.unimelb.edu.au/harald/bibbase.bib","dataSources":["BNGFBQQncqevukxoe","q5pWX4XZgAS4TQBof","yb3uN577XrYa7qf57","9jmvjAEoFta6emcgS","XqcrNTrCCBr9mSd37","W7ih7WyQivP4EDh83"],"keywords":["constraint programming","logic programming","static analysis","program transformation","compilation"],"search_terms":["optimizing","compiler","clp","kelly","macdonald","marriott","søndergaard","stuckey","yap"],"title":"An Optimizing Compiler for CLP(R)","year":1995}