tags:

views:

15

answers:

1

I am writing a Fortran77 program which uses a 3-dimensional array. I am declaring the array as follows Array_E(0:500,0:1000,0:100). When I execute the program it crashes instantly saying that it is "killed". When I ran strace, what I got was,

execve("./yee", ["./yee"], [/* 65 vars */] +++ killed by SIGKILL +++

I suspect the problem is that the g77 compiler is not able to allocate memory for the array. In fact there are nine such arrays. In such a case is there a way to dynamically allocate memory on the stack in f77? If this is not the reason for the crash, kindly let me know if you have any idea about it.