Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9216649
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T02:27:48+00:00 2026-06-18T02:27:48+00:00

There some very good descriptions on SO, as well as all over the web,

  • 0

There some very good descriptions on SO, as well as all over the web, about how LLVM optimizes code. But these fail to answer my specific question.

In Xcode, there are various options for code optimization in the project and target settings. I understand the need for no optimization during development, but why would one choose anything other than Fastest,Smallest[-Os] when compiling a release build.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T02:27:49+00:00Added an answer on June 18, 2026 at 2:27 am

    In most situations, -Os is a good choice. It has a nice mix of optimizing for space and optimizing for speed.

    However, the other options do have some appeal:

    • -O/-O1: “I’d like to have a little more ability to debug optimized code”
    • -O2: (ok, honestly not sure why one would choose -O2 over -Os. Maybe if a particular code size optimization -Os does was hurting
      performance too much?)
    • -O3: “This part of the code needs to be fast, and responds well enough to aggressive inlining and loop unrolling to offset the code
      size penalty”
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

There are some very good questions here on SO about file management and storing
I know there are some very good Perl XML parsers like XML::Xerces , XML::Parser::Expat
It seems there are some very good resources on my question - at least
There are some very useful classes for working with images. I am stuck with
Is there some trick that I'm missing here? I've created a templated control, very
I'm very new to SCM, and I'm aware that there are some guidlines and
Are there some good resources tutorials or anyone has tried to implement a Capcha
Some time ago we took over the responsibility of a legacy code base. One
There is a plenty of very good post and explanations how to implement validation
I'm not very good with MySQL statements, so I'm looking for some insight. Let's

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.