• 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: XCode Falls Short - for now
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: XCode Falls Short - for now


  • Subject: Re: XCode Falls Short - for now
  • From: Dave Camp <email@hidden>
  • Date: Mon, 30 Oct 2006 14:42:41 -0800

On Oct 30, 2006, at 2:31 PM, Steve Checkoway wrote:

Dave Camp wrote:

Maybe this explains Windows engineers tendency to put all their C+ + code in the .h files? Almost every Windows port job I work on has 50-75% of the C++ source inlined in the .h files. I've never been able to get an explanation as to why I see this so often... that's got to put a lot of pressure on the linker to strip out all the duplicate code generated in each object file.

I doubt that has anything to do with it. The more code the compiler can see, the better it can optimize that code. Interprocedural optimization is hard enough, but when you have code that has already been compiled into machine code (in object files), you lose all of the structure that you had at the source level.

That suggests a lack of decent performance analysis tools on Windows or premature optimization on the part of the engineers. Throwing code willy-nilly into the headers hoping for a performance boost doesn't sound like a good engineering practice.


I guess the primary reason code like that sends up red flags for me is that historically gdb has not worked well debugging code that originates from inlines in headers. Maybe it's better these days (I've been doing mostly Cocoa work for some time now). In any event, it just doesn't seem right.

Does Windows not have a performance tool like Shark? I'm going to guess not...

Dave
---
There's an old proverb that says just about whatever you want it to.

_______________________________________________
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


  • Follow-Ups:
    • Re: XCode Falls Short - for now
      • From: Scott Ribe <email@hidden>
    • RE: XCode Falls Short - for now
      • From: "Lyndsey Ferguson" <email@hidden>
References: 
 >Re: XCode Falls Short - for now (From: Scott Ribe <email@hidden>)
 >Re: XCode Falls Short - for now (From: Dave Camp <email@hidden>)
 >Re: XCode Falls Short - for now (From: Steve Checkoway <email@hidden>)

  • Prev by Date: Re: A little off topic ...
  • Next by Date: RE: XCode Falls Short - for now
  • Previous by thread: Re: XCode Falls Short - for now
  • Next by thread: RE: XCode Falls Short - for now
  • Index(es):
    • Date
    • Thread