Forum Discussion
Altera_Forum
Honored Contributor
15 years agoStack overflow can be due to one of these:
- recursive calls (but you say you don't use them) - a lot of nested calls - big local variables, like arrays or structs The more common is the last one. If this is your case, define these variables as static inside the function or as global variables. You must also check heap: do you use it directly with malloc or calloc calls? or do you use OS or drivers which allocate a lot of memory? Which kind of project is yours?