If your program has years in development you will try many different things and sometimes forget to clean up after failed attempts. Sometimes you forget to reduce back huge static array you created and it lives there for years. Often you just do not realize that you've just created monstrous array. This happened to me many times. No mater what the reason both in 32bit and even with the 64bits it is always important to know the array sizes
Which FTN95 option tells about sizes of all static arrays in the program? I remember it existed but was so inconvenient that I failed to find what I wanted. If this does not exist in the convenient summary form showing largest arrays first like this i made following suggestion of John Campbell because could not handle by myself the bizarre format like this b'z,zzz,zzz,zz# 😃
write (*,11) size (Arr1), size (Arr1) /1e6 * 4
write (*,11) size (Arr2), size (Arr2) /1e6 * 4
write (*,11) size (Arr3), size (Arr3) /1e6 * 4
write (*,11) size (Arr4), size (Arr4) /1e6 * 4
11 format ('Total size, array elements = ',b'z,zzz,zzz,zz#', ' Total size, MB = ',b'z,zzz,zzz,zz#')
then i'd consider this as the request for the new option.
The dynamic arrays is different story and need programmer's own careful bookkeeping and control. I do not know if compiler can tell what is the size of allocated arrays in the program?