• 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: llvm link statistics
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: llvm link statistics


  • Subject: Re: llvm link statistics
  • From: Peter O'Gorman <email@hidden>
  • Date: Thu, 02 Jul 2009 14:03:08 -0500

Arne Scheffler wrote:
>
> On Jul 2, 2009, at 6:18 PM, Peter O'Gorman wrote:
>
>> Peter O'Gorman wrote:
>>> Arne Scheffler wrote:
>>>> Hi,
>>>> in the "LLVM-GCC Release Notes" it's stated that "The linker accepts
>>>> some command-line options (such as -mllvm) to turn on LTO debugging,
>>>> statistics dumping, and so on". Can someone tell me what setting I need
>>>> to do to dump the link statistics ?
>>>> I tried to add "-stats" to the "Other Linker flags", but llvm-g++-4.2
>>>> prints a warning about an unrecognized option "-stats".
>>>
>>> It's a linker option, so you need to quote it to hide it from the
>>> compiler.
>>>
>>> -Wl,-mllvm,-stats might do something. The linker will see -mllvm -stats
>>> and pass -stats to libLTO.
>>
>> Should have tried it before posting.
>>
>> -mllvm -stats - no -Wl, quoting.
>
>
> OK, no more warnings, but do you see any output, I don't.

No, it doesn't seem to do much, -mllvm --help, shows a bunch of options,
I doubt that all of them are used at link time. The ld64 test suite
tests the -mllvm functionality using:
-Wl,-mllvm -Wl,--disable-inlining

Hmm, the -Wl, quoting is necessary, as without it gcc unhelpfully turns
--disable-inlining into -fdisable-inlining before passing it along to
ld. Anyway, either way -stats outputs nothing.

I don't know if a later llvm/libLTO is better in this regard, you can
check it out from llvm.org svn and try, if you like.

I suggest filing a radar.

Peter
--
Peter O'Gorman
http://pogma.com
 _______________________________________________
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: 
 >llvm link statistics (From: Arne Scheffler <email@hidden>)
 >Re: llvm link statistics (From: Peter O'Gorman <email@hidden>)
 >Re: llvm link statistics (From: Peter O'Gorman <email@hidden>)
 >Re: llvm link statistics (From: Arne Scheffler <email@hidden>)

  • Prev by Date: Re: llvm link statistics
  • Next by Date: Disable auto-completion on return?
  • Previous by thread: Re: llvm link statistics
  • Next by thread: Feature requests for iPhone dev?
  • Index(es):
    • Date
    • Thread