• 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: Zerolink slows gdb to a crawl?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Zerolink slows gdb to a crawl?


  • Subject: Re: Zerolink slows gdb to a crawl?
  • From: Jonathan Taylor <email@hidden>
  • Date: Tue, 17 Jan 2006 00:08:09 +0000

gdb is painfully slow when debugging my project - just a simple 'Step
Over' takes a couple of seconds per line.  I've discovered that
turning off Zerolink makes this much faster.  A smaller project
doesn't seem to suffer from the same problems.

My project has around 60 .ob files for zerolinking.  Is there a known
problem with gdb speeds & lots of .ob files?  Is there anything I can
try that might speed things up?

ZeroLink saves time at link time by deferring all linking and loading till runtime. With some projects this is fast and efficient, but with others it causes big slowdowns when debugging; it depends on the organization of your project.

If you spend more time loading the .ob files dynamically at debug time
than you'd spend actually linking them at link time, then by all means
turn off ZeroLink for this project.
The experience I had, and the timings attached to the bug report I referred to (rdar://4349128), seemed to suggest that it wasn't just time taken loading the files dynamically that was the problem. Successive single-steps within a single function took far longer than with zerolink turned off: I would have expected that if it was just a dynamic loading issue then the delay should go away after a few single-steps (particularly around a loop), which isn't my experience.

Jonny
_______________________________________________
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: Zerolink slows gdb to a crawl?
      • From: Jonathan del Strother <email@hidden>
  • Prev by Date: Re: Undefined symbol __error()
  • Next by Date: CPlusTest source?
  • Previous by thread: Re: Zerolink slows gdb to a crawl?
  • Next by thread: Re: Zerolink slows gdb to a crawl?
  • Index(es):
    • Date
    • Thread