[Bug regression/58244] global variable: many THOUSANDS times slower execution

martin.konopka at stuba dot sk gcc-bugzilla@gcc.gnu.org
Mon Aug 26 18:21:00 GMT 2013


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

--- Comment #2 from Martin Konôpka <martin.konopka at stuba dot sk> ---
It it is confirmed, it is a very serious performance issue. In my test the code
with the global declaration executed about 60000 times slower than the code
with the local declaration.

For people doing HPC this is a bug because it turns the compiled binary being
unusable for codes affected by the issue. (60000 times slower is simply no go.)

Large C codes often use global variables, otherwise the lists of function
parameters would become enormously long.


More information about the Gcc-bugs mailing list