Article View: comp.sys.atari.st
Article #3305A Bug in Sozobon Optimizer?
From: ZUCCONI
Date: Tue, 22 Aug 1989 22:16
Date: Tue, 22 Aug 1989 22:16
45 lines
1705 bytes
1705 bytes
Date: 22 August 1989, 22:15:35 GMT
From: J.-M. Zucconi (+33) 81666900 ZUCCONI at FRMOP11
To: INFO-ATARI16@SCORE.STANFORD.EDU
Subject: A bug in Sozobon Optimizer ?
In Issue #395, mcvax!hp4nl!phigate!philmds!leo@uunet.uu.net (Leo de Wit)
writes:
|In article <8908092123.AA03210@ucbvax.Berkeley.EDU> ZUCCONI@FRMOP11.BITNET
| writes:
| []
|| The following program gives me 2 differents results when compiled
||with sozobon C. Without optimization , I get the correct result:
|| 01-09-89 06:25
||and compiled with the -O flag, I get
|| 01-09-89- 06:2
|| Has someone found and fix such "features" in the optimizer?
||
||
||----------------------------- Cut Here ---------------------------------
||#include <osbind.h>
||
||main()
||{
|| char txt[10];
||
|| convtime(0x1321,0x3333,txt);
||
|| printf("%s\n",txt);
||}
|
|The problem is not with the optimizer, but with your program. According
|to the output produced, txt[] should accomodate for at least 15 characters.
|Since it doesn't, the fact that it works correctly in the unoptimized case
|is just sheer luck.
|
| Leo.
However, I have tried with txt[80] and the error remains....
=-=-=-=-=-=-=-=-=-=-=-
Jean- Marc Zucconi
ZUCCONI@FRMOP11.bitnet
-=-=-=-=-=-=-=-=-=-=-=
Technical Details
Message-ID:
<8908222121.AA02943@ucbvax.Berkeley.EDU>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.csd.uwm.edu!bionet!agate!ucbvax!FRMOP11.BITNET!ZUCCONIShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.csd.uwm.edu!bionet!agate!ucbvax!FRMOP11.BITNET!ZUCCONI From: ZUCCONI@FRMOP11.BITNET Newsgroups: comp.sys.atari.st Subject: A Bug in Sozobon Optimizer? Message-ID: <8908222121.AA02943@ucbvax.Berkeley.EDU> Date: 22 Aug 89 22:16:52 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 45