www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/07/21/06:29:15

Date: Sat, 21 Jul 2001 13:23:05 +0300
From: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>
Sender: halo1 AT zahav DOT net DOT il
To: Sterten AT aol DOT com
Message-Id: <7458-Sat21Jul2001132305+0300-eliz@is.elta.co.il>
X-Mailer: Emacs 20.6 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.9
CC: djgpp AT delorie DOT com
In-reply-to: <45.962d4f0.288aae1a@aol.com> (Sterten@aol.com)
Subject: Re: pokeb peekb
References: <45 DOT 962d4f0 DOT 288aae1a AT aol DOT com>
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

> From: Sterten AT aol DOT com
> Date: Sat, 21 Jul 2001 06:06:18 EDT
> 
>  >That's because you didn't turn on optimizations (the -O2 switch) 
> 
> do I need -O2 , when I have strip ?

They do different things: -O2 produces more optimized (i.e. faster and
smaller) code, while strip (or -s switch to GCC) removes debug
information, which is very large, to allow convenient source-level
debugging.

>  >and didn't ask GCC to print warnings (the -Wall switch).
> 
> I turned that off, since there were too many.

You should solve each warning one by one.  Some of them might be real
errors, except that GCC could recover from them, so it doesn't flag
them as errors.

>  >You probably
>  >don't want to change your program each time you modify the compilation
>  >switches, so I suggest to always include <sys/farptr.h>.  Trust me, I
>  >know what I'm talking about.
> 
> will my friend get an error with his Intel-compiler ?

farptr.h functions are specific to DJGPP, so this program will not
compile with other compilers, or even with GCC on another OS.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019