• 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: link-time optimization error using llvm 3.0
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: link-time optimization error using llvm 3.0


  • Subject: Re: link-time optimization error using llvm 3.0
  • From: Andreas Grosam <email@hidden>
  • Date: Wed, 07 Dec 2011 09:32:03 +0100

On Dec 6, 2011, at 5:36 PM, tobias ford wrote:

> Yeah...  That was the equivalent answer to sweeping this issue under the carpet :)
>
> If I use llvm gcc, are the link-time optimizations to the same or somewhat similar extents as when using llvm 3.0?

LLVM GCC 4.2 supports Link-Time optimizations.

You may read in the release notes <http://developer.apple.com/library/mac/#releasenotes/DeveloperTools/RN-llvm-gcc/_index.html> for further details.


From my experience with LTO using clang/LLVM (and I don't have any for GCC 4.2),  I wouldn't recommend it to enable this flag in production code *yet*, unless you tested your code *thoroughly*. It seems, there are still bugs in the linker and possibly elsewhere, too.

The typical Objective-C code wouldn't benefit much anyway (hardly noticeable difference in performance, during my tests). But sometimes, that is not always, I experienced a dramatical improvement in code which has inlined C-functions, especially C++ templates and code which includes "header only libraries": about 30% improvements for small codes in synthetic benchmarks.


Regards
Andreas _______________________________________________
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: 
 >link-time optimization error using llvm 3.0 (From: tobias ford <email@hidden>)
 >Re: link-time optimization error using llvm 3.0 (From: "Justin C. Walker" <email@hidden>)
 >Re: link-time optimization error using llvm 3.0 (From: Fritz Anderson <email@hidden>)
 >Re: link-time optimization error using llvm 3.0 (From: tobias ford <email@hidden>)

  • Prev by Date: Re: Still no way to double-click a symbol to get docs?
  • Next by Date: Re: Still no way to double-click a symbol to get docs?
  • Previous by thread: Re: link-time optimization error using llvm 3.0
  • Next by thread: NSRangeException on iPod but not on iPad or iPhone Simulator
  • Index(es):
    • Date
    • Thread