Look at this code
Code:
my_tmp_function() {
int array1[4096]
long array2[other big size]
... a few more big arrays...
}
I have a similar code in my program. At runtime, memory is a factor because the program uses lots of hash tables, precomputed values and so on. The above function only run from time to time (I can call many times the program and it does not run it). My question is: if at runtime above code is not invoked, does the function take so a big space at memory, or is only filled when call the function?
thanks.