Title of article :
Compile-time Computation of Polytime Functions
Author/Authors :
Covino, Emanuele Universita di Bari - Dipartimento di Informatica, Italy , Pani, Giovanni Universita di Bari - Dipartimento di Informatica, Italy , Scrimieri, Daniele Universita di Bari - Dipartimento di Informatica, Italy
Abstract :
We investigate the computational power of C++ compilers. In particular, it is known that any partial recursive function can be computed at compile time, using the template mechanism to define primitive recursion, composition, and minimalization. We show that polynomial time computable functions can be computed at compile-time using the same mechanism, together with template specialization
Keywords :
Static computation , C++ templates , polytime computable functions.
Journal title :
Journal of J.UCS (Journal of Universal Computer Science)
Journal title :
Journal of J.UCS (Journal of Universal Computer Science)