Am Fr, 2003-11-28 um 00.13 schrieb John Marshall:

John,

> >> If you compile your small test program with -S (=generate assembly)
> >> you see what is happening, For MAX=9 the cmd struct is initialized
> >> by code. For MAX=10 there is a copy in the .data section which gets
> >> copied to the stack at the start of the routine.
> > 
> > Ah well, this explains everything. I seriously started to doubt my
> > sanity ;)
> 
> Using -S and similar flags and *looking at what is actually going on* is
> a great last-ditch technique for saving your sanity.  More people should
> use it more often :-).

I did check the assembly files but I wasn't in the right state of mind
back then to understand what actually went on. Mind you, the problem
surfaced in a quite large application, came quite unexpected and is a
bit erratic :-( The bug and I spent quite a bit of time together :-)

> > Should I report this at prc-tools bug tracker?
> 
> Sure.  If you want to see me immediately close it as a duplicate of
> http://sourceforge.net/tracker/index.php?func=detail&aid=221845&group_id=4429&atid=104429

Yes, I saw this three-year-old entry but wasn't sure that it was the
same as the situation is slightly different. As the example given in
this bug is even more of an ordinary example than my array, I wonder
that there aren't more reported problems with this.

-- 
Daniel Seifert <[EMAIL PROTECTED]>


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to