Const code generation