------- Comment #5 from pinskia at physics dot uc dot edu  2006-11-30 21:23 
-------
Subject: Re:  sqrt(CGAMMA*PRES[j]/DENS[j]) much slower than compiting compiler

> 
> 
> 
> ------- Comment #4 from burnus at gcc dot gnu dot org  2006-11-30 21:14 
> -------
> > Also you are using VLAs so maybe ICC also converts those VLAs to normal 
> > arrays.

You misunderstood me.
const int NODES = 2500;
float f[NODES];

causes a VLA to happen because in C, NODES is not a constant expression.
You can do instead:
#define NODES 2500
to get the non VLA.

-- Pinski


-- 


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

Reply via email to