Mail Archives: djgpp/2002/01/21/09:37:15
On Mon, 21 Jan 2002, Rodeo Red wrote:
>
>
> pavenis AT lanet DOT lv wrote:
> >
> > On 18 Jan 2002 at 17:14, Rodeo Red wrote:
> >
> > > Then I updated:
> > > djdev203 Development Kit and Runtime (12/2001 Refresh)
> > > gpp303b.zip : GCC 3.0.3 C++ compiler binaries for DJGPP
> > >
> > > The compiler took twice as long, the the program it produced was twice
> > > as big, and when I ran my program, it took 50% longer and turned the
> > > begining of the web pages into gibberish. (A repeating pattern which,
> > > strangly had the word java in it.)
> >
> > One of things to try in such case is to add compiler option
> > -fno-strict-aliasing and see whether it fixes the problem. Search
> > GCC-3.0.3 man page (man gcc) or docs for '-fstrict aliasing' to
> > get more info.
> >
> > Andris
>
> Thanks for the suggestion. I tried it and I still get the same results.
>
So perhaps You'll have to try to debug program to find the source of
trouble. Some more suggestions try to compile with various optimization
related options and see whether result changes. Also don't use
-fomit-frame-pointer (however serious -fomit-frame-pointer related
problem were fixed in gcc-3.0.3)
(But ignore compile time and program performance now while the result
is wrong)
Andris
- Raw text -