what functions/c commands utilizes stacK in ccs compiler?
Posted: Thu Jun 03, 2004 2:36 am
does the do while loop use hardware stack? what other ccs implementation of c and also its own built-in functions use up harware stack?
Ttelmah Guest
Re: what functions/c commands utilizes stacK in ccs compiler
Posted: Thu Jun 03, 2004 2:40 am
atabac_2000 wrote:
does the do while loop use hardware stack? what other ccs implementation of c and also its own built-in functions use up harware stack?
The hardware stack on a PIC, is _only_ basically used for call/return operations. It is possible on the latter chips to manually access the stack, but it is small, & quite slow to access this way. The stack is not a general purpose 'register' stack as is found on many other processors. if you call a subroutine, and this is not coded as 'inline', then the stack will be used to hold the return address. Otherwise the stack will not be used.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum