------- Comment #12 from ohl at physik dot uni-wuerzburg dot de 2010-07-06 07:38 ------- (In reply to comment #10) > It is not particularly efficient to use a huge static variable. [...] > initialization at run time is the better choice for large arrays. The best > solution for PARAMETER depends on the purpose.
In the real-life application, the non-trivial PARAMETER values are computed by an external code generator to match the code and its impossible to compute them in Fortran at runtime. It would be possible to read the values from a separate file generated together with the code, but it's tedious and introduces another failure mode. However, I cannot see that this would be more efficient than loading the equivalent data sections. Furthermore, declaring the data as PARAMETER helps the optimizer and OpenMP, doesn't it? -- ohl at physik dot uni-wuerzburg dot de changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ohl at physik dot uni- | |wuerzburg dot de http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44742