Re: Stupid Compiler Tricks

From: Sammy (samedi@DHC.NET)
Date: 05/19/98

Thanks for all the ideas and suggesitons, guys.

On Thu, 14 May 1998, Mark A. Heilpern wrote:

> Try removing your compiler optimization flags. One optimization
> technique is to combine two variables that are not used at the
> same time into one location - this makes data needs smaller and
> makes your code harder to debug. Perhaps this is what you're
> running up against.

That's what it turned out to be.  A simple -O flag resulted in several
hours of frustration, but on the bright side, I guess it was saving me 4
whole bytes of memory!

> Debugging optimized code can be an interesting experience.



     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | |

This archive was generated by hypermail 2b30 : 12/15/00 PST