Giter Club home page Giter Club logo

Comments (6)

mytbk avatar mytbk commented on May 28, 2024

I used -Os in tools_def.txt before, but gcc fails to build because -Os has some conflicts with (ms_abi), so there's no -Os for gcc.

from edk2.

bcran avatar bcran commented on May 28, 2024

I'm using -Os successfully with gcc 4.9 at least.

from edk2.

lersek avatar lersek commented on May 28, 2024

gcc-4.8 accepts -Os if -maccumulate-outgoing-args is specified in addition, but unfortunately it also misbuilds edk2 that way. Sergey Isakov reported however that gcc-4.9 worked for him, so that seems consistent with @bcran's comment #34 (comment). See this thread:

http://thread.gmane.org/gmane.comp.bios.tianocore.devel/10963

This is quite unfortunate (for gcc-4.8), because -Os brings significant space savings.

from edk2.

lersek avatar lersek commented on May 28, 2024

@bcran since this appears to apply to edk2 master as well, I propose to remove the UDK reference from the title. Thanks.

from edk2.

bcran avatar bcran commented on May 28, 2024

@lersek I added the UDK reference to indicate that it wasn't a new bug - because it might be nice to have fixes committed to other branches such as UDK2014.SP1 and UDK2015 in addition to master.

from edk2.

lersek avatar lersek commented on May 28, 2024

@bcran point taken, setting tags.

from edk2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.