large executables for static memory allocation

I compiled a fortran90 code with static memory allocation.
The size of the executable strongly depends on the predefined size of the arrays which appear in the program. The executable can have a size of some 100 MB while with other compilers it´s always 1 MB.
Is there an option to fix that?
(version: 5.2-4 linux )

Hi Marhae,

On Linux, large static arrays can cause your objects to grow quite large if you initalize them in the declaration. For each element of your array, an assembly instruction must be generated to perform the intialization. So the size of the object grows as the number of elements grows. The solution is to initialize your arrays at runtime using loops.

Hope this helps,
Mat