From owner-freebsd-current Sat Mar 13 14:47:40 1999 Delivered-To: freebsd-current@freebsd.org Received: from mail.kar.net (n186.cdialup.kar.net [195.178.130.186]) by hub.freebsd.org (Postfix) with ESMTP id 9A3D21543F for ; Sat, 13 Mar 1999 14:45:35 -0800 (PST) (envelope-from kushn@mail.kar.net) Received: from localhost (volodya@localhost) by mail.kar.net (8.9.3/8.8.8) with ESMTP id AAA18386; Sun, 14 Mar 1999 00:40:09 +0200 (EET) (envelope-from kushn@mail.kar.net) Date: Sun, 14 Mar 1999 00:39:15 +0200 (EET) From: Vladimir Kushnir X-Sender: volodya@kushnir.kiev.ua To: Alex Zepeda Cc: "David O'Brien" , current@FreeBSD.ORG Subject: Re: bmake/contrib framework for egcs In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Thanks, I'll try, but what I mean is egcs compiled binaries are bigger even for C, not C++, and as if memory serves -Os is -O2 subset. So probably I'll just have to accept this increase in binaries size :-(. Ah well, it ain't all that much, anyway. Oh, incidentally, I forgot to add that (when compiling libstdc++ with new c++ for the first time, it can't find file exception. So perhaps in gnu/lib/libstdc++/Makefile this part of CFLAGS shoild be -I${EGCSDIR}/gcc/cp/inc rather than -I${EGCSDIR}/gcc/cp/inc/exception (after all, ${EGCSDIR}/gcc/cp/inc/exception is a file). On Sat, 13 Mar 1999, Alex Zepeda wrote: > On Sat, 13 Mar 1999, Vladimir Kushnir wrote: > > > BTW, binaries compiled with egcc are still larger than with stock gcc. Is > > there a way to shrink them (beyond what's possible with -O optimisation)? > > Try -Os, -fno-exceptions* -fno-rtti* or any combo of the above. > > * Don't do this with libraries, just in case you've got any programs that > use exceptions or rtti. Obviously this won't work with programs that use > rtti and/or exceptions. > > - alex > Regards, Vladimir ===========================|======================= Vladimir Kushnir | kushn@mail.kar.net, | Powered by FreeBSD kushnir@ap3.bitp.kiev.ua | To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message