public inbox for crossgcc@sourceware.org
 help / color / mirror / Atom feed
* Build XGCC without debug info?
@ 2000-10-25 18:01 Christopher Bahns
  0 siblings, 0 replies; 2+ messages in thread
From: Christopher Bahns @ 2000-10-25 18:01 UTC (permalink / raw)
  To: crossgcc

It seems that when building a cross-compiler (using binutils-2.10,
gcc-2.95.2, and newlib-1.8.2), the resulting binaries are by default
built with debug information (I know because I am able to use gdb to
step through the compiler source). Anyone know an easy (or proper) way
to build the compiler and libraries without debug info? I assume the
resulting files would be quite a bit smaller.

Thanks for any help!
Chris


------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

* RE: Build XGCC without debug info?
@ 2000-10-26  5:21 Langerholc, Larry
  0 siblings, 0 replies; 2+ messages in thread
From: Langerholc, Larry @ 2000-10-26  5:21 UTC (permalink / raw)
  To: 'Christopher Bahns', crossgcc

I don't know about building the compiler without symbols, but I believe that
the "strip" command would do the job for you. I copied my executable to /tmp
(just to be safe) and after running "strip",
it dropped in size from 171924 to 86016 bytes.
Regards,
Larry Langerholc

Larry Langerholc 
e-mail: larry.langerholc@icn.siemens.com 
phone: (561)-923-1789
fax:   (561)-923-1708

> -----Original Message-----
> From: Christopher Bahns [ mailto:chris@bahns.com ]
> Sent: Wednesday, October 25, 2000 9:02 PM
> To: crossgcc@sourceware.cygnus.com
> Subject: Build XGCC without debug info?
> 
> 
> It seems that when building a cross-compiler (using binutils-2.10,
> gcc-2.95.2, and newlib-1.8.2), the resulting binaries are by default
> built with debug information (I know because I am able to use gdb to
> step through the compiler source). Anyone know an easy (or proper) way
> to build the compiler and libraries without debug info? I assume the
> resulting files would be quite a bit smaller.
> 
> Thanks for any help!
> Chris
> 
> 
> ------
> Want more information?  See the CrossGCC FAQ, 
> http://www.objsw.com/CrossGCC/
> Want to unsubscribe? Send a note to 
> crossgcc-unsubscribe@sourceware.cygnus.com
> 

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2000-10-26  5:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-10-25 18:01 Build XGCC without debug info? Christopher Bahns
2000-10-26  5:21 Langerholc, Larry

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).