Sorry for not responding earlier. I missed the first message, but saw the follow up.
It looks here like a classic case where parameters passed to functions are not cleaned up from the stack when the called function returns. This is a typical C/C++ optimization (defer stack cleanup until necessary), but tends to cause problems on Palm OS systems where the stack is small. When using CodeWarrior, you can use a #pragma to enable instant stack cleanup: #pragma stack_cleanup on I'm not sure if there is a similar gcc flag to control this. -- Keith > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of Fruber > Malcome > Sent: Wednesday, February 18, 2004 4:00 PM > To: Palm Developer Forum > Subject: Re: CodeWarrior 9.0 bug - number of calls ? > > > I apologize for the basic question, > > What is the error message you are getting? (during runtime or > compile time?) > > thanks - bill > > "Luciano Wagner Kalisewski" <[EMAIL PROTECTED]> > wrote in message > news:[EMAIL PROTECTED] > > Hello all, > > > > does anybody has ever faced a problem related to the number > of function > > called from the same function? > > > > For instance: > > > > void a(long, long, long, long, long, long, long, long, > long, long, long, > > long, long, long); > > void a(long, long, long, long, long, long, long, long, > long, long, long, > > long, long, long){ > > //Empty function - NO CODE > > } > > > > void b_Generate_Error(void){ > > a(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14); > > a(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14); > > a(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14); > > a(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14); > > a(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14); > > ... 100 times > > a(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14); > > } > > > > void b_Does_Not_Generate_Error(void){ > > for(int i = 0; i < 10000; i++) a(1, 2, 3, 4, 5, 6, 7, 8, 9, > 10, 11, 12, > > 13, 14); > > } > > > > > > Regards, > > Luciano Wagner Kalisewski -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
