Message-Id: From: "Michael Schuster" Organization: LS f. Elektrische Energieversorgung To: djgpp AT delorie DOT com Date: Mon, 11 Mar 1996 08:49:09 MET Subject: Optimization is not strange anymore Sers! I wrote: > I' ve realized a strange(?) behaviour of the optimization switch in GNU > C/C++. > I wrote a program to convert binary files to ASCII files (nothing > _really_exiting, I know) and after a few days, it worked really fine. > > After all I decided to compile with the -O3 option (no error > message at all) but when executing suddenly it chrashed. So I 've > a simple question: Is that what you 'ld call a bug - or is it quite normal? > I tried it both with GNU V1 and V2 and a 486 DX40, 16 MBRAM, DOS 6.22 You advised me to compile with -Wall first and got no error at all, when compiling with -Wall -O and -O2 I got some errors but the programm worked fine. Finally with -O3 it crashed again, but -Wall said something with initialation, so I did it and now it works. Thanks for your help out there, You're a really good team (you might already know, of course). Michi 'When I'm away she never leaves the house' (Weezer) --------------------------------------------------------------------- Dipl.-Ing * * * * * * * * Michael Schuster * * * * Lehrstuhl fuer * * * * * * * * Elektrische Energieversorgung * * * * Friedrich Alexander Universitaet Erlangen * * * * * * * Cauerstrasse 4 TEl:(0)9131 85 8762 Fax:(0)9131 85 9541 ----------------------------------------------------------------------