[tremor] [PATCH] eliminate alloca() usage
Segher Boessenkool
segher at koffie.nl
Wed Oct 16 22:34:58 PDT 2002
Nicolas Pitre wrote:
>
> OK, I felt I could be kind and try helping some people out there so removed
> all occurrences of alloca() in the source. No malloc()/free() were added.
Not okay. Variable length arrays are a C99 feature.
> Anybody with another compiler than GCC please confirm if the attached
> patch works for you or not.
And all (almost) C99 compatible compilers support alloca(), too.
> If your compiler doesn't support variable-length automatic arrays nor a
> proper alloca() implementation then please do yourself a favor by trashing
> it and install GCC instead.
GCC doesn't generate very fast code on most targets.
<p>Segher
<p>--- >8 ----
List archives: http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'tremor-request at xiph.org'
containing only the word 'unsubscribe' in the body. No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.
More information about the Tremor
mailing list