www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/03/11/03:02:51

Message-Id: <MAILQUEUE-101.960311084909.384@merlin.e-technik.uni-erlangen.de>
From: "Michael Schuster" <SCHUSTER AT merlin DOT e-technik DOT uni-erlangen DOT de>
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
----------------------------------------------------------------------

- Raw text -


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