• 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: CodeWarrior vs XCode build
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CodeWarrior vs XCode build


  • Subject: Re: CodeWarrior vs XCode build
  • From: Chris Espinosa <email@hidden>
  • Date: Thu, 19 Jul 2007 09:45:42 -0700


On Jul 19, 2007, at 9:00 AM, Hemant Balakrishnan wrote:

We had a pascal project under CodeWarrior which was ported into XCode. The issue we are facing right now is that the build in CodeWarrior runs upto 5 times faster than the one in XCode. The project has versions which would compile under both CodeWarrior & XCode and we notice that the executable (Release version) produced by XCode is significantly slower.  Has anyone come across such an issue? 

How did you port the Pascal project to Xcode?  Xcode doesn't come with a Pascal compiler, headers, or link libraries.  So the first thing to look at is ether the third-party Pascal compiler you're using, or the quality of the C code resulting from the translation from Pascal.

The general solution to "Why is X faster than Y" is to use Shark on both and look carefully at the results.  You can then see if the slowdown is algorithmic (the two versions are doing different things), systemic, or the result of poor optimization or code generation.

gcc 2.95.2, used in early versions of Xcode, had relatively poor code generation; Apple and the gnu community have made substantial improvements since then, and code generated by gcc 4.0 should not be 5x slower than code generated by a Pascal compiler.

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: 
 >CodeWarrior vs XCode build (From: Hemant Balakrishnan <email@hidden>)

  • Prev by Date: Re: embedded projects, dependencies, and linking
  • Next by Date: Re: Problem using static floats
  • Previous by thread: CodeWarrior vs XCode build
  • Next by thread: Java, XCode, CodeSense, code completion woes continued
  • Index(es):
    • Date
    • Thread