#: 4381 S3/Languages
15-Jun-90 01:18:08
Sb: #Maybe another C bug
Fm: Bob van der Poel 76510,2203
To: all
I have been playing around with Eric Williams spell-check programs from the UG
library. These programs were originally complied with the Introl_C compiler.
I've had to make a few minor changes in order to get things to work under the
Microware C compilier. But in the process (Mark, I am really hesitant to say
this!!!) I have discovered another bug in the compilier. It seems that if a
GOTO is done to a label at the start of a function (after all the declarations)
the stack pointer is not set up properly causing a drastic crash. Inserting a
line of BS code in front of the label solved the problem (as did rewriting the
code to avoid the GOTO entirerly), but I was wondering if anyone else was aware
of the this problem. If not I'll spend a bit of time on it to find out the
exact situations in which it causes the problem and post the results.
BTW, I have the spell program working and have been able to make drastic (about
seven fold) changes to the speed simply by changing from unbuffered to buffered
i/o. I hope to do some other things too and intend to post the entire package
when done. Any ideas, requests or suggestions?
There are 2 Replies.
|