[vorbis-dev] alloca() problem with CodeWarrior

Phil Burk philburk at softsynth.com
Thu Mar 14 10:59:56 PST 2002



THANK YOU Ben!
I applied the 5.3 patch for CodeWarrior 5.0 on Mac OS 9 and it fixed the
problem with alloca() corrupting the stack pointer.

The alloca() function is used throughout the Vorbis code base. In my Google
searches, I saw many cases where alloca() caused problems on many machines.
It is often implemented incorrectly by compilers. Plus it requires lots of
stack space. There was a discussion a while back about removing alloca()
calls from Ogg Vorbis. I would like to add one vote for that mod.

    http://www.google.com/search?q=alloca+crash

Phil Burk

>>The problem I am having now is that the CodeWarrior 5.0 compiler has a bug
>>with alloca().
>>
Ben Stanley wrote:
>Did you apply the CW 5.3 patch? It should be freely downloadable from
>www.metrowerks.com. I don't know if it fixes this bug, but I use it for
>all my work. (I don't tend to use alloca().)

<p><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 'vorbis-dev-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 Vorbis-dev mailing list