On 10/29/2014 10:18 AM, Tim Lewis wrote: > For historical perspective, the EDK2 build flags have focused on space over > speed because of the code size constraints placed on flash-resident code. Not > being as familiar with gcc as I am with VS20xx, I don't know whether these > can be set together.
It looks like there are several places where -Os and -O2 are used: GCC_ALL_CC_FLAGS: -Os GCC_IA32_CC_FLAGS: -O2 *_GCC44_IA32_CC_FLAGS: -Os *_GCC45_IA32_CC_FLAGS: -Os *_GCC46_IA32_CC_FLAGS: -Os *_GCC47_IA32_CC_FLAGS: -Os *_GCC48_IA32_CC_FLAGS: -Os *_GCC49_IA32_CC_FLAGS: -Os *_ELFGCC_X64_CC_FLAGS: -Os The XCODE and XCLANG definitions seem more consistent between IA32 and X64 versions. -- Bruce ------------------------------------------------------------------------------ _______________________________________________ edk2-devel mailing list edk2-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/edk2-devel