[Bug fortran/20923] Compile time is high for the following code

tobi at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Thu May 19 22:09:00 GMT 2005


------- Additional Comments From tobi at gcc dot gnu dot org  2005-05-19 22:09 -------
The time behavior is strictly linear BTW:
n = 100:
real    0m0.604s
user    0m0.485s
sys     0m0.021s
n = 1000:
real    1m0.860s
user    0m49.055s
sys     0m0.078s

(the array grows quadratically with n)

One thing that's interesting is that in the -fdump-parse-tree output the array
constructor is only expanded in the first case but not in the second, so it
looks like in the latter case we explicitly calculate the array and then throw
it away.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tobi at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20923



More information about the Gcc-bugs mailing list