Hi,
I have a fortran code which uses Dynamic Memory. i.e. It allocates memory
for various arrays using input from Namelist parameters. I noticed a
peculiar run-time behaviour. The code when compiled with -O2 and -O3
options gives segmentation fault/Bus error. But the code goes through when
compiled with -O4 option. In this case, the size of the executable
steadily increases(beyond 1GB). The actual data-size inside the code does
not exceed 400 MB. Another thing is, when combined with -g option
along-with -O4 option, the executable size becomes as small as 375MB. As
an user, i find this behaviour singular. Can someone throw light on the
problem on this ?
Thanks and Regards
Janakiraman
|