Hi Matthew,
I am not seeing large differences in size using the default flags from
tools_def.txt.
Here are some measurements of the DxeCore.efi module in MdeModulePkg/Core/Dxe.
I have included the LZMA compressed size too because that the most common
compression for FVs/Modules.
TARGET TOOL_CHAIN_TAG ARCH Size LZMA Compressed Size
Module Extra Flags
======= ================ ===== ===== ====================
========== ============
DEBUG VS2008x86 IA32 60,640 34,172
DxeCore.efi
DEBUG VS2012x86 IA32 63,264 35,699
DxeCore.efi
DEBUG VS2013x86 IA32 60,224 34,489
DxeCore.efi
RELEASE VS2008x86 IA32 60,384 34,060
DxeCore.efi -D MDEPKG_NDEBUG
RELEASE VS2012x86 IA32 62,784 35,343
DxeCore.efi -D MDEPKG_NDEBUG
RELEASE VS2013x86 IA32 59,712 34,154
DxeCore.efi -D MDEPKG_NDEBUG
DEBUG VS2008x86 X64 77,184 35,907
DxeCore.efi
DEBUG VS2012x86 X64 73,696 34,507
DxeCore.efi
DEBUG VS2013x86 X64 73,728 34,432
DxeCore.efi
RELEASE VS2008x86 X64 76,690 35,802
DxeCore.efi -D MDEPKG_NDEBUG
RELEASE VS2012x86 X64 73,440 34,342
DxeCore.efi -D MDEPKG_NDEBUG
RELEASE VS2013x86 X64 73,472 34,245
DxeCore.efi -D MDEPKG_NDEBUG
Do you have an example of an EDK II module that exhibits the large size
differences you are seeing using the default flags from tools_def.txt?
Thanks,
Mike
-----Original Message-----
From: edk2-devel [mailto:[email protected]] On Behalf Of Foster,
Matthew I
Sent: Tuesday, September 15, 2015 1:09 PM
To: [email protected]
Subject: [edk2] VS tools version and code size
I have noticed that while compiling using Visual Studio 2008 the code size is
much smaller compared to using a later version of Visual Studio, like 2012.
Does anyone have any experience as to why that is? Are there any recommended
configurations or changes needed when using a later version of Visual studio
not add to the output code size? Thanks for any recommendations or explications.
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.01.org/mailman/listinfo/edk2-devel
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.01.org/mailman/listinfo/edk2-devel