CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

what functions/c commands utilizes stacK in ccs compiler?

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
atabac_2000



Joined: 21 Apr 2004
Posts: 10

View user's profile Send private message

what functions/c commands utilizes stacK in ccs compiler?
PostPosted: Thu Jun 03, 2004 2:36 am     Reply with quote

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
PostPosted: Thu Jun 03, 2004 2:40 am     Reply with quote

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.

Best Wishes
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group