Le jeudi 03 mars 2005 ? 20:29 +0100, Kleijn, J.S. de a ?crit
:> I use the Intel compiler 7.0 , and it doesn't like it
Does it have an option to enable C99? Otherwise, if you're aware of
another mechanism that allows it to allocate temporary stuff on the
stack, I might be able to support it.
Jean-Marc
> -----Oorspronkelijk bericht-----
> Van: Jean-Marc Valin [mailto:Jean-Marc.Valin@USherbrooke.ca]
> Verzonden: do 3-3-2005 20:24
> Aan: Kleijn, J.S. de
> CC:
> Onderwerp: RE: [Speex-dev] Improving memory allocation
>
>
>
> > This won't compile here because the value between the [] has to
be constant which i isn't
>
> It does compile on newer compilers, because C99 accepts arrays of
> variable size. It's only C89 compilers that requires a constant
> argument. I just don't know how many of those are still around.
>
> Jean-Marc
>
> > Greetings Jeroen de Kleijn
> >
> > -----Oorspronkelijk bericht-----
> > Van: speex-dev-bounces@xiph.org namens Jean-Marc Valin
> > Verzonden: do 3-3-2005 20:06
> > Aan: speex
> > CC:
> > Onderwerp: [Speex-dev] Improving memory allocation
> >
> >
> >
> > Hi,
> >
> > I'm currently working on improving the allocation of
temporary data to
> > allow allocation directly on the (real) stack instead of my
> > pseudo-stack. I'll probably leave the old allocator
available as an
> > option for compilers that don't understand variable-size
arrays, but I'd
> > like to have an idea of how many people it affects.
> >
> > Are there many people who cannot compile the following (valid
C99)
> > program?
> >
> > int main()
> > {
> > int i=1;
> > float f[i];
> > }
> >
> > Jean-Marc
> >
> > --
> > Jean-Marc Valin <Jean-Marc.Valin@USherbrooke.ca>
> > Universite de Sherbrooke
> >
> > _______________________________________________
> > Speex-dev mailing list
> > Speex-dev@xiph.org
> > http://lists.xiph.org/mailman/listinfo/speex-dev
> >
>
> --
> Jean-Marc Valin <Jean-Marc.Valin@USherbrooke.ca>
> Universite de Sherbrooke
>
>
--
Jean-Marc Valin <Jean-Marc.Valin@USherbrooke.ca>
Universite de Sherbrooke