I am programming some embedded device which has 64 MB SDRAM. (C is used as programming language). Is it possible to make a guess (maybe even a rough guess) about the possible size of the stack of this device? Referring to memory which gets used when we make allocations such as, e.g.,
char s[100];
int t[50];
etc.
e.g., will it be more than 50KB? etc. that is what I mean with rough
plus when I have variables inside some function f
f()
{
int p;
}
when f() exists, this variable dies right?
So when I call f2():
void f2()
{
char t[100];
}
Only the size of a 100 element char array will be added to the stack size right??
size of int p
from previous function is not considered anymore.