Mail Archives: djgpp/1999/05/21/12:30:22.1
@elp.rr.com wrote:
> It actually might not be the code, i tried it myself. Without using -O2 the
> program works fine but with it
> the graphics do get screwed up. gcc may just optimizing what it thinks
> is right, but isn't. If it don't work. don't do it
I had a problem like that, a LONG time ago. I made an image processor, and
it gave a different output image when -O2 was used. There are 2 main
possibilities:
1) gcc is optimizing in a way it shouldn't.
2) Your [my] code is written using unintended side-effects of some actions
which are optimized out of the program.
I don't know which one is the correct one, but it is always easier to blame
someone other than yourself.
--
(\/) Endlisnis (\/)
s257m AT unb DOT ca
Endlisnis AT HotMail DOT com
ICQ: 32959047
- Raw text -