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
Posted: Wed Jun 15, 2005 12:57 pm
The number of hardware stack levels depends on the processor type you are using, check the datasheet.
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
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)
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