public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [Patch 0/4] BaseTools: Enable optimization to generate fast code in C tools
@ 2016-09-29 14:12 Liming Gao
  2016-09-29 14:12 ` [Patch 1/4] BaseTools EfiLdrImage: Remove unnecessary exit (0) Liming Gao
                   ` (4 more replies)
  0 siblings, 5 replies; 10+ messages in thread
From: Liming Gao @ 2016-09-29 14:12 UTC (permalink / raw)
  To: edk2-devel

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



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2016-09-30 17:46 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-29 14:12 [Patch 0/4] BaseTools: Enable optimization to generate fast code in C tools Liming Gao
2016-09-29 14:12 ` [Patch 1/4] BaseTools EfiLdrImage: Remove unnecessary exit (0) Liming Gao
2016-09-29 14:12 ` [Patch 2/4] BaseTools Makefile: Enable O2 option to replace Od for VS tool chain Liming Gao
2016-09-29 14:12 ` [Patch 3/4] BaseTools GenVtf: Initialize the return point as NULL Liming Gao
2016-09-29 14:12 ` [Patch 4/4] BaseTools Makefile: Enable Ofast option for GCC tool chain Liming Gao
2016-09-29 18:29   ` Laszlo Ersek
2016-09-30  0:24     ` Gao, Liming
2016-09-30  6:56       ` Gao, Liming
2016-09-30  9:49         ` Laszlo Ersek
2016-09-30 17:46 ` [Patch 0/4] BaseTools: Enable optimization to generate fast code in C tools Jordan Justen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox