This is the mail archive of the
mailing list for the GCC project.
Re: To -g or not to -g? (was: egcs build report)
- To: egcs-patches at cygnus dot com
- Subject: Re: To -g or not to -g? (was: egcs build report)
- From: Gerald Pfeifer <pfeifer at dbai dot tuwien dot ac dot at>
- Date: Sat, 15 Aug 1998 22:49:41 +0200 (MET DST)
- cc: egcs at cygnus dot com, Jason Merrill <jason at cygnus dot com>, Jeffrey A Law <law at cygnus dot com>, Mark Mitchell <mark at markmitchell dot com>
[ Please omit firstname.lastname@example.org from replies. ]
On 6 Aug 1998, Jason Merrill wrote:
> make CFLAGS=-O 'LIBCFLAGS=-g -O'
> should do it.
And later Jeff Law:
> Look for LIBCXXFLAGS and LIBCFLAGS or something like that which might
> allow you to control what specific flags are used when building the
> runtime libraries (particularly for g++).
Thanks for your hints!
How about the patch below? Okay to install?
FYI, here are some statistics for a LANGUAGE="c c++" on freebsd2.2.6. It
appears that omitting debug version really makes quite a difference!
with debug info without debug info
Object directory 74203 KB 46116 KB
Installed egcs 18008 KB 10513 KB
RCS file: /egcs/carton/cvsfiles/wwwdocs/htdocs/install/build.html,v
retrieving revision 1.7
diff -c -r1.7 build.html
*** build.html 1998/07/14 03:01:37 1.7
--- build.html 1998/08/15 20:47:39
*** 35,40 ****
--- 35,47 ----
from the stage1 and stage2 of the 3-stage bootstrap of the compiler are
deleted as soon as they are no longer needed.
+ <p>If you want to save additional space during the bootstrap and in
+ the final installation as well, you can build the compiler binaries
+ without debugging information with "make CFLAGS='-O' LIBCFLAGS='-g
+ -O2' LIBCXXFLAGS='-g -O2' bootstrap". This will save roughly 40% of
+ disk space both for the bootstrap and the final installation.
+ (Libraries will still contain debugging information.)
<p><b>Building a cross compiler</b>
<p> We recommend reading the
*** 60,66 ****
! <i>Last modified on June 19, 1998.</i>
--- 67,73 ----
! <i>Last modified on August 15, 1998.</i>