Re: Slow and bloated?
Re: Slow and bloated?
- Subject: Re: Slow and bloated?
- From: "Theodore H. Smith" <email@hidden>
- Date: Mon, 26 Jul 2004 14:25:40 +0100
Heres an interesting idea for the truely obsessed.
Run shark, on Xcode, or on gcc, to see what is taking it so long. :o)
Clearly gcc handles Objective-C++ compilation differently than
Objective-C, but I was kind of hoping that I could offer up a
suggestion here. Hopefully, what I *didn't* find could prove useful
instead. :P
I just ran the example that Allan posted and fed it through ktrace,
thinking that maybe it would yield another clue for the Obj-C++ case.
The kernel dumps were identical for both cases.
FYI - I ran the examples verbatim from the example below, using
gcc-3.3 from the command line. I tried both 'gcc' and 'g++', and in
each case, I wound up with very similar results to the ones that Allan
posted.
It's pretty easy to conclude that gcc could use some serious
optimization for compiling Objective-C++. Unfortunately, I would kind
of doubt that optimizing gcc for Obj-C++ compile times is high on the
agenda of the Apple engineering team, for fairly obvious reasons.
Incidentally, a glance at the man page for gcc indicates that pch is
disabled when compiling ObjC++ code. I would imagine that this would
account for most (if not all) of the time discrepancy, but I wasn't
able to prove that assumption.
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.