Static code generation