• 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
1 GB limit on total object files size for linking?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

1 GB limit on total object files size for linking?


  • Subject: 1 GB limit on total object files size for linking?
  • From: "Helmut Brandt" <email@hidden>
  • Date: Mon, 27 Aug 2007 17:26:54 -0700

Summary: Can't link 1.2GB collection of object files, compiled to Intel
architecture.

I have a large program of roughly 1000 object files, which together
total about 1.2 GB in size. The largest individual object file is about
7 MB, and they range down to as small as 3 KB. The files themselves are
simple, but large, collections of floating point multiplies and
additions. The Xcode project is just a "Command Line Utility standard
tool", written in plain C. No frameworks. The only included libraries
are stdio.h, stdlib.h, string.h, and math.h.

The executable is a CGI script.

I can successfully compile the files, but when I attempt to link them, I
get the following message:

/usr/bin/ld: can't vm_allocate() buffer for output file of size
1235753308 ((os/kern) no space available)
collect2: ld returned 1 exit status

My machine is a Mac Mini Intel Core Duo (not Intel Core 2 Duo) with 2GB
of RAM and over 30 GB of available HD space. I am running OS X 10.4.10,
with XCode tools version 2.4.1.

I am compiling to Intel architecture only.  By the way, I can
successfully compile, link, and run a PowerPC version of this exact
same code. The PPC produces an executable of about 700 MB (yes, the code
grew from 700MB to 1.2GB going from PPC to Intel.  For that reason, I am
wondering if there is a 1GB limit imposed somewhere on the total
executable size?

Is this some sort of 32 bit limitation in the Mac OS, a GCC limitation,
an Intel Core Duo limitation,  or an Xcode limitation? Or, is it an "I
don't know what I am doing limitation? (very possibly)

Do I simply need more RAM? Unfortunately, my Mac Mini is maxed out at 2
GB already.  Or, would somehow a Core 2 Duo instead of my Core Duo help?
Or do I need to wait for Leopard to link files of that size? (64 bit vs
32 bit)

Or, is there just a magic terminal command or Xcode setting that I can
execute to allow larger files

Or, should I be doing some sort of dynamic linking to avoid an
executable of that size? I am by no means an experienced programmer, so
take it slow!
--
  Helmut Brandt
  email@hidden

--
http://www.fastmail.fm - Does exactly what it says on the tin

 _______________________________________________
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: 1 GB limit on total object files size for linking?
      • From: "Helmut Brandt" <email@hidden>
    • Re: 1 GB limit on total object files size for linking?
      • From: Jason Molenda <email@hidden>
  • Prev by Date: Re: Xcode default "Install Permissions", clean "permission denied"
  • Next by Date: Re: [SOLVED] Question about static members of templated classes.
  • Previous by thread: Re: [SOLVED] Question about static members of templated classes.
  • Next by thread: Re: 1 GB limit on total object files size for linking?
  • Index(es):
    • Date
    • Thread