Hi, I have a Fortran program with large locals.
If compiled with no or “standard” flags, it cannot be executed at all (exec format error), because of these large locals.
My current attempt on this is:
flang-new -fstack-arrays -fuse-ld=lld -march=x86-64-v4 -O3 -o symbolic_regress2.exe symbolic_regress2.f90 -Wl,-stack:40000000000
The resulting exe starts, but soon gets slower and slower …
Is there an alternate way to handle this?
I do not need recursion/reentrancy.
Any additional optimization hints would be appreciated.
The program runs on Linux at a reasonable pace (only gfortran tested and compiler options not known as of yet).
Thx Franz