Bug 7579 - GCC build results in larger images
Summary: GCC build results in larger images
Status: RESOLVED MOVED
Alias: None
Product: MinnowBoard MAX Firmware
Classification: Hardware Platforms
Component: minnowboard-uefi-firmware (show other bugs)
Version: unspecified
Hardware: MinnowBoard Max Multiple
: Low normal
Target Milestone: Future
Assignee: David_Wei
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2015-04-07 23:13 UTC by Darren Hart
Modified: 2017-06-13 18:07 UTC (History)
5 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Yes (doc changes required)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Darren Hart 2015-04-07 23:13:25 UTC
The gcc build results in larger MinnowBoard MAX firmware images. This results in having to use a smaller UEFI shell binary and limits debug and similar capabilities. This may be related to gcc link-time code generation, and clang/llvm may offer a better open-source build alternative to gcc.
Comment 1 David_Wei 2015-05-27 07:05:46 UTC
David take this bug to investigate.
Comment 2 B Cran 2015-07-29 03:12:58 UTC
As I understand it (and from my experiments) gcc x64 release builds are currently built with _no_ optimization - i.e. not even -O1. 

Scott Duplichan has been working to add both basic optimization and LTCG/LTO in the edk2-devel thread "Enable optimization for gcc x64 builds". However, I suspect his work only applies to edk2 trunk, not the UDK2014.SP1 branch that Minnowboard appears to build from.  Also, it's getting bogged down in discussions, so I'm now sure if his work will be committed.
Comment 3 Stephen K Jolley 2017-06-13 18:07:53 UTC
We are no longer tracking in Yocto Project Bugzilla MinnowBoard and MinnowBoard-MAX HW and firmware bugs.