• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Switching from -O3 to -Os causes my code to start crashing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Switching from -O3 to -Os causes my code to start crashing


  • Subject: Re: Switching from -O3 to -Os causes my code to start crashing
  • From: Chris Espinosa <email@hidden>
  • Date: Wed, 17 May 2006 20:21:32 -0700

On May 17, 2006, at 5:36 PM, Mark Alldritt wrote:

When I change the optimizer level from -O3 (fastest) to -Os (fastest,

smallest), one part of my code begins crashing.  Can someone point me to a

place where the differences between -O3 and -Os are explained in detail so

that I can figure out what my code is doing that is tripping up the GCC

optimizer?


I googled "site:developer.apple.com O3" and got:

http://developer.apple.com/documentation/DeveloperTools/gcc-3.3/gcc/Optimize-Options.html

-O3 turns on all optimizations specified by -O2 and also turns on the -finline-functions and -frename-registers options. 

-Os enables all -O2 optimizations that do not typically increase code size. It also performs further optimizations designed to reduce code size.
-Os disables the following optimization flags:
          -falign-functions  -falign-jumps  -falign-loops
          -falign-labels  -freorder-blocks -fprefetch-loop-arrays

Chris
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Switching from -O3 to -Os causes my code to start crashing (From: Mark Alldritt <email@hidden>)

  • Prev by Date: Re: Find Fast
  • Next by Date: Re: dead-code stripping, pass two...
  • Previous by thread: Switching from -O3 to -Os causes my code to start crashing
  • Next by thread: Extern "C" -- Function Parameters Corrupted on Mactel??
  • Index(es):
    • Date
    • Thread