constant folding


constant folding

(compiler)A compiler optimisation technique whereconstant subexpressions are evaluated at compile time. Thisis usually only applied to built-in numerical and booleanoperators whereas partial evaluation is more general in thatexpressions involving user-defined functions may also beevaluated at compile time.