piclist 2002\09\11\025449a >
Thread: Antwort: Re: stack check in mplab simulator (5.62)
www.piclist.com/techref/microchip/languages.htm?key=mplab
face
flavicon
face BY : Scott Dattalo email (remove spam text)



On Tue, 10 Sep 2002, Scott Dattalo wrote:

{Quote hidden}

-- There's actually an easier way that doesn't involve inline assembly:


void main(void)
{

#ifdef SIMULATION_ONLY
   bogus_routine();
#endif


  while(1)
    my_code_that_crashes();

}


void
bogus_routine(void)
{

  while(1)
    my_code_that_crashes();

}

Basically, you force an extra call. Now this won't work on SDCC since
it'll inline a simple call like this.

Scott

--
http://www.piclist.com hint: The PICList is archived three different
ways.  See http://www.piclist.com/#archives for details.


<Pine.LNX.4.44.0209102350510.22156-100000@ruckus.brouhaha.com>

In reply to: <Pine.LNX.4.44.0209102328380.22156-100000@ruckus.brouhaha.com>
See also: www.piclist.com/techref/microchip/languages.htm?key=mplab
Reply You must be a member of the piclist mailing list (not only a www.piclist.com member) to post to the piclist. This form requires JavaScript and a browser/email client that can handle form mailto: posts.
Subject (change) Antwort: Re: stack check in mplab simulator (5.62)

month overview.

new search...