On Sat, 9 May 1998, William T Wilson wrote:

> The short answer, then, is yes, optimization can affect your code if your
> code is buggy to begin with.  :)  Try using the -Wall option to gcc and
> see if it turns up any obvious errors.

Yes, the code was buggy of course, it's a small wonder that the
non-optimized binary didn't coredump as well, because I was writing
beyond the end of a string... Thanks for the explanation anyway! I've
never programmed any assembler, so I really have no idea what
optimizations do to the code. I imagined it was just a magical way of
making it run faster, but now I know better.

Linus 

-------------------------------------------
Linus Åkerlund    e-mail: [EMAIL PROTECTED]
http://hem2.passagen.se/c64linus/index.html
http://members.xoom.com/vic20/index.html
http://user.tninet.se/~uxm165t/index.htm
-------------------------------------------


--
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
         To unsubscribe: mail [EMAIL PROTECTED] with
                       "unsubscribe" as the Subject.

Reply via email to