constant folding


Also found in: Wikipedia.

constant folding

(compiler)
A compiler optimisation technique where constant subexpressions are evaluated at compile time. This is usually only applied to built-in numerical and boolean operators whereas partial evaluation is more general in that expressions involving user-defined functions may also be evaluated at compile time.
References in periodicals archive ?
The ancient Japanese art of making Samurai swords includes very high temperatures, and a constant folding of the steel.
We present a specialized constant folding algorithm to decrease the size of the combinatorial problem in order to increase the efficiency of heuristics for its solution.
Jacobian accumulation, linearities, constant folding
To our knowledge general-purpose compilers do not perform this kind of extended static constant folding analysis.
We present new algorithms for the optimality-preserving elimination of linearities in Jacobian accumulation by constant folding.
One can argue that code optimization via constant propagation and constant folding algorithms built into compilers is already capable of optimizing [*.
Reduction of the problem size through constant folding in G
The application of the constant folding to seu graphs is a theoretical exercise as the optimal solution is constructed and does not require a search space reduction.
1 we introduce the format of the output graph generated by OpenAD (5) and we illustrate the effect of constant folding at the level of local partial derivatives.
Constant folding as presented here is implemented in the OpenAD (7) framework of the Adjoint Compiler Technology & Standards (ACTS) project.
Additional performance-boosting PowerPC compiler optimizations include: real-number manipulations, range tracking, constant propagation, constant folding, dead code elimination, and constant operations.

Full browser ?