結果 : explain the simple code generation algorithm in detail