Mail Archives: djgpp/2001/07/21/06:29:15
> 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 -