• 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
reducing ld's memory footprint (19 minutes of linking)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

reducing ld's memory footprint (19 minutes of linking)


  • Subject: reducing ld's memory footprint (19 minutes of linking)
  • From: Stefan Werner <email@hidden>
  • Date: Tue, 9 Aug 2005 16:09:13 +0200

Hi,

I'm ported a large project from CodeWarrior to Xcode (using gcc3.3) and linking a debug build now takes 19 minutes on my PowerBook (G4 1.5GHz, 1.25GB RAM). A quick glance at top tells me that RAM is the bottleneck, the ld process goes up to a VSIZE of 2.31GB, there's lots of pageins/pageouts and the CPU idles at 70%. The resulting binary is 300MB in size, 200MB if I enable dead code stripping (for comparison, CodeWarrior links in one minute, less than 500MB VSIZE and producing a binary of 25MB, .xSYM and .xMAP being 30MB combined).

Are there any tricks to bring my linking times down to reasonable sizes, other than trading my PowerBook for a G5 with 4GB RAM? Zerolink refuses cooperation, when I turn it on, ld complains about not being able to find my static libraries.

Thanks,
Stefan
_______________________________________________
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: reducing ld's memory footprint (19 minutes of linking)
      • From: Lawrence Gold <email@hidden>
    • Re: reducing ld's memory footprint (19 minutes of linking)
      • From: Roy Lovejoy <email@hidden>
  • Prev by Date: build paths
  • Next by Date: Re: Repost: Problem with "Copy Files" phase
  • Previous by thread: Re: build paths
  • Next by thread: Re: reducing ld's memory footprint (19 minutes of linking)
  • Index(es):
    • Date
    • Thread