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 CCS Technical Support

QUestion about the calling Tree limit

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








QUestion about the calling Tree limit
PostPosted: Wed Jun 15, 2005 12:01 pm     Reply with quote

Hi,
I check in my function calling tree file, and I see some of the functions have the calling stack up to 7 levels. I remember I read somewhere about the max number of function call level is 8. Is it true? Can anyone help me to elaborate on this topic?
Is case of reaching the max number of calling level, will the CCS compiler will generate an error or warning message or it is the job of the programmer to look into the calling tree file to verify that?

Thank in advance.
B.N
ckielstra



Joined: 18 Mar 2004
Posts: 3680
Location: The Netherlands

View user's profile Send private message

PostPosted: Wed Jun 15, 2005 12:57 pm     Reply with quote

The number of hardware stack levels depends on the processor type you are using, check the datasheet.

Read also the following thread http://www.ccsinfo.com/forum/viewtopic.php?t=23243
Guest








PostPosted: Wed Jun 15, 2005 3:56 pm     Reply with quote

Ckielstra,
Thanh you so much for the link and your comments. My pic is 18F8720. The spec. said it has up to 31 software accessable hardware stack.
So far, I have up to 10 levels...I guess I won't have any problem and that why the i don't see any compiler error or warning message regarding to over the calling stack.


CCS PCH C Compiler, Version 3.224, 28569 12-Jun-05 18:19

Filename: C:\Program Files\PICC\projects\Design09\main.LST

ROM used: 23922 bytes (18%)
Largest free fragment is 65536
RAM used: 1817 (47%) at main() level
1873 (49%) worst case
Stack: 10 worst case (7 in main + 3 for interrupts)

B.N
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