Generate code stub in global variables.