X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f Date: Sat, 06 Apr 2002 20:09:51 +0300 From: "Eli Zaretskii" Sender: halo1 AT zahav DOT net DOT il To: "Michael Cluster" Message-Id: <7263-Sat06Apr2002200951+0300-eliz@is.elta.co.il> X-Mailer: emacs 21.2.50 (via feedmail 8 I) and Blat ver 1.8.9 CC: djgpp AT delorie DOT com In-reply-to: <3caeec9f$0$4310$afc38c87@news.optusnet.com.au> (dj_cluster AT hotmail DOT com) Subject: Re: optimisations ? References: <3caeec9f$0$4310$afc38c87 AT news DOT optusnet DOT com DOT au> Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > From: "Michael Cluster" > Newsgroups: comp.os.msdos.djgpp > Date: Sat, 6 Apr 2002 22:38:27 +1000 > > Is there a way to optimise code in DJGPP, and turn off debugging info? Yes (see the other replies); but you don't need to. With DJGPP (and GCC in general) you can have both optimizations and debug info. That way, you will be debugging the same executable as the one you will be using in production. So I recommend using both -O2 and -g (or, even better, -O2 -gstabs+).