From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28866 invoked by alias); 6 May 2003 13:54:05 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 28353 invoked from network); 6 May 2003 13:54:03 -0000 Received: from unknown (HELO rusfw.rohde-schwarz.com) (80.246.32.32) by sources.redhat.com with SMTP; 6 May 2003 13:54:03 -0000 Received: from rus11.rsd.de by rusfw.rohde-schwarz.com via smtpd (for sources.redhat.com [66.187.233.205]) with SMTP; 6 May 2003 13:51:28 UT Received: by mail.rohde-schwarz.com(Lotus SMTP MTA v4.6.7 (934.1 12-30-1999)) id C1256D1E.004C5D54 ; Tue, 6 May 2003 15:54:06 +0200 X-Lotus-FromDomain: RSD@RUS From: Joachim.Eibl@RSD.rohde-schwarz.com To: gcc-help@gcc.gnu.org Message-ID: Date: Tue, 06 May 2003 13:54:00 -0000 Subject: How can I shrink the size of debug info? Mime-Version: 1.0 Content-type: text/plain; charset=us-ascii Content-Disposition: inline X-SW-Source: 2003-05/txt/msg00049.txt.bz2 Hi, I am porting a big library from Win32 to Linux. I'm using gcc-3.2 under i386-Linux. The source is C++. The Windows-DLL, generated via VC6, is 4.7 MByte in the release version and 14 MByte in the debug version. (approximately 3 times as large) Under Linux the so-File is 6.6 MByte in the release version (compiled with -O1 and stripped), but 66 MByte in the debug version using -g and no optimization. (approximately 10 times as large!) Which options can I use to reduce the size of the debug version, without compromising the debugability too much? Regards, Joachim