From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) (using TLSv1 with cipher CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 0BC8F1A1E3B for ; Thu, 29 Sep 2016 07:12:55 -0700 (PDT) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga101.jf.intel.com with ESMTP; 29 Sep 2016 07:12:54 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.30,415,1470726000"; d="scan'208";a="767204315" Received: from shwde7172.ccr.corp.intel.com ([10.239.9.23]) by FMSMGA003.fm.intel.com with ESMTP; 29 Sep 2016 07:12:53 -0700 From: Liming Gao To: edk2-devel@lists.01.org Date: Thu, 29 Sep 2016 22:12:43 +0800 Message-Id: <1475158367-13120-1-git-send-email-liming.gao@intel.com> X-Mailer: git-send-email 2.8.0.windows.1 Subject: [Patch 0/4] BaseTools: Enable optimization to generate fast code in C tools X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Sep 2016 14:12:55 -0000 After enable optimization, C tool build time is reduced by ~50%. Please see below example to use LzmaCompress to compress OVMF DXEFV. Tool Compression time Decompression time LzmaCompress (GCC O0) 3.476s 0.204s LzmaCompress (GCC Ofast) 1.655s 0.107s LzmaCompress (VS Od) 3.047s 0.210s LzmaCompress (VS O2) 1.551s 0.126s Liming Gao (4): BaseTools EfiLdrImage: Remove unnecessary exit (0) BaseTools Makefile: Enable O2 option to replace Od for VS tool chain BaseTools GenVtf: Initialize the return point as NULL BaseTools Makefile: Enable Ofast option for GCC tool chain BaseTools/Source/C/EfiLdrImage/EfiLdrImage.c | 1 - BaseTools/Source/C/GenVtf/GenVtf.c | 1 + BaseTools/Source/C/Makefiles/header.makefile | 6 +++--- BaseTools/Source/C/Makefiles/ms.app | 2 +- BaseTools/Source/C/Makefiles/ms.common | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) -- 2.8.0.windows.1