Workshop on Constraint Handling Rules, Date: 2007/09/08 - 2007/09/08, Location: Porto, Portugal
Publication date:
2007-01-01
Pages:
123 -
137
Proceedings of the 4th Workshop on Constraint Handling Rules
Author:
Wuille, Pieter
Schrijvers, Tom ; Demoen, Bart ; Djelloul, K ; Duck, GJ ; Sulzmann, M
Keywords:
CHRC, C, compilation
Abstract:
CHR is usually compiled to high-level languages (like Prolog) that make it hard or impossible to express low-level optimizations. This is a pity, because it confines CHR to be a prototyping language only, with an unacceptable performance for production quality software. This paper presents CCHR, a CHR system embedded in the C programming language, that compiles to low-level C code which is highly suitable for fine-grained performance improvements. In this way CCHR program performance comes close to matching that of native C, and easily outperforms other CHR implementations.