[comp.sys.acorn] C problem. any ideas?

gtoal@tardis.computer-science.edinburgh.ac.uk (05/01/91)

I have a program I ported to the archie which misbehaves horribly
if I make the smallest changes to it.  I don't think it's the
usual unassigned variable problems, or heap cotruption, or wild
pointers -- because a very suspicious thing happens:  It works
correctly only under C3.1B compiled with -g.  Any other compiler,
it goes wrong. Not -g, it goes wrong.  And the clincher is... using
the desktop debugger it actually gives an address trap *inside the
debugger* before it even gets to the first line of main.  I haven't
a clue what could cause those symtoms. Any ideas?

Graham
(replies by mail to gtoal@uk.ac.ed -- our mail feed is *still* broken)