• 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: WWDC / XCode v2.0?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WWDC / XCode v2.0?


  • Subject: Re: WWDC / XCode v2.0?
  • From: Tobias Sargeant <email@hidden>
  • Date: Fri, 2 Jul 2004 09:22:14 +1000

From: Eric Albert <email@hidden>
Subject: Re: WWDC / XCode v2.0?
Date: Thu, 1 Jul 2004 02:01:12 -0700
To: XCode (Group) <email@hidden>

On Jun 30, 2004, at 5:18 PM, John Clements wrote:

I haven't had much time yet to explore XCode 2.0 (and I'm not exactly
a power-user) but all the familiar stuff is working nicely. I have
built and launched a couple of apps without a hitch.

And I've tested a couple of the new features...

Turned on Debug -> Enable Guard Malloc, launched my app (took almost a
minute), and immediately hit a memory access bug. The app stopped in
the debugger highlighting the offending line. This is going to be
really useful.

While the integration of Guard Malloc into the Xcode UI is a new feature, Guard Malloc itself isn't. It shipped as a preview release with Xcode 1.2, so you can use it on 10.3.4 today. You can find it in a "Preview" folder at the root level of the Xcode 1.2 Tools CD.

Guard Malloc is a tremendously useful tool.  If only all applications
were run with it before shipping....

-Eric

[The] one thing I really miss from programming on linux/x86 is valgrind. Valgrind (at least on x86) makes guard page based malloc debuggers, leak checkers and a host of other debugging tools essentially redundant. Also, unlike programs like purify, it doesn't preinstrument code (and works better in any case).

In the past it's enabled me to find and squash (within an hour) an evil
heap overrun in some of the most ugly and twisted c code I've ever seen
before, without ever having seen said code before.

http://valgrind.kde.org/

There's an experimental port to linux/ppc:

Paul Mackerras has an experimental port of Valgrind 2.1.0 to PowerPC/Linux (download).
Some caveats:
It only supports 32-bit instructions at present (no 64-bit instructions).
It doesn't handle Altivec (SIMD) instructions.
There are no PowerPC-specific suppression files yet, so libc.so and ld.so cause a lot of errors.
The code to set cache parameters in cachegrind is pretty minimal at present.


If something like this doesn't already exist for OS X, it would be an
amazingly worthwhile project for Apple (or at least someone pretty
intimately familiar with ppc and OS X) to get behind.

Toby.
_______________________________________________
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.


  • Follow-Ups:
    • Re: WWDC / XCode v2.0?
      • From: Chris Ridd <email@hidden>
    • Re: WWDC / XCode v2.0?
      • From: Patrick Coskren <email@hidden>
  • Prev by Date: Re: WWDC / XCode v2.0?
  • Next by Date: Re: WWDC / XCode v2.0?
  • Previous by thread: Re: WWDC / XCode v2.0?
  • Next by thread: Re: WWDC / XCode v2.0?
  • Index(es):
    • Date
    • Thread