my program hangs....
it is compiled and built successfully showing 44.45% program memory usage
i am programming in C...should i consider page or compiler does it???
what is the stack limitation of PIC16F877a???
is calling a function in another function creating this problem???
i hav heard that if the program code memory exceeds 2k we need to change PCLATH.
most compilers manage the paging and banking, just don't exceed the 2k page limit on a single routine (16F) or you can use 18F series, no banking and paging worries.
Normally the C compilers handle the bank switching stuff internally. However might it be that your code does not have a valid / correct return path since you mentioned that you have functions calling functions?