Re: Library tripled in size with GCC 4.2
Re: Library tripled in size with GCC 4.2
- Subject: Re: Library tripled in size with GCC 4.2
- From: Eric Gorr <email@hidden>
- Date: Wed, 15 Oct 2008 16:45:14 -0400
On Oct 15, 2008, at 2:35 PM, Chris Espinosa wrote:
On Oct 15, 2008, at 8:56 AM, Eric Gorr wrote:
On Oct 15, 2008, at 10:25 AM, Jean-Daniel Dupas wrote:
Le 15 oct. 08 à 15:54, Eric Gorr a écrit :
If I build one of my libraries with GCC 4.0, it is ~400mb.
If the only setting I change is to change the compiler to GCC
4.2, the library becomes ~1.2GB.
Anyone know why this might have occurred?
Change in debugger symbols settings ?
Well, the only change I made in the build settings was to change
the compiler from GCC 4.0 to GCC 4.2.
Perhaps GCC 4.2 is generating a lot more debugging information?
I checked the release configuration and GCC 4.2 created a smaller
library then GCC 4.0.
If you set the Debug Symbol Style to "DWARF with dSym" you'll be
able to see the binary size and debug size independently.
thanks for the suggestion...
The documentation on this states:
-----
Object files and linked products will use DWARF as the debug
information format, and Xcode will also produce a dSYM file containing
the debug information from the individual object files (except that a
dSYM file is not needed and will not be created for static library or
object file products). [dwarf-with-dsym]
^^^^^
I have a static library, so DWARF with dSym would appear to be
equivalent to just DWARF.
When I build the library under GCC 4.2, the specific error message I
am getting is:
/Developer/usr/bin/libtool: can't vm_allocate() buffer for output
file: libCore.a of size 1206037468 ((os/kern) no space available)
Here is more specific information about what I am using:
/usr/bin $gcc-4.2 --version
i686-apple-darwin9-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5564)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There
is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.
/usr/bin $ld -v
@(#)PROGRAM:ld PROJECT:ld64-85.2.1
/usr/bin $libtool -V
Apple Computer, Inc. version cctools-698.1
_______________________________________________
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