Well, first of all - using HP-UX.
Anyways, what i meant is that when u said:
"If you really are blowing the stack - which I doubt - try using heap instead of stack.
In other words make the array a global array, not on the stack. You can do this two ways by:
1. declaring it global
(Guess u imply BSS)
or
2. using malloc to create the storage for the array
(This is the heap)"
So just wanted to confirm thats what u meant.
So effectively avoid stack, and allocate memory in BSS(would affect the static memory on physical memory) or heap.
'size command' would indicate the BSS my program would use, which the compiler can calculate. Heap, like stack is allocated at run time.
Anyways, thanks for t advice!