[vorbis-dev] alloca() problem with CodeWarrior

Monty xiphmont at xiph.org
Thu Mar 14 22:12:14 PST 2002



On Thu, Mar 14, 2002 at 09:41:42PM -0800, Brendan Dowling wrote:
> On Thu, Mar 14, 2002 at 10:28:31PM -0600, Chris Hanson wrote:
> > At 4:52 PM -0800 3/14/02, Brian Hook wrote:
> > > > I vote against.  People having trouble with alloca() can
> > >> always use one of the portable C implementations of it (like
> > >> the one in libiberty, for example).
> > >
> > >Why not include a portable implementation with Ogg Vorbis?  That would
> > >seem to solve all the problems.
> > 
> > I'll go a step further and suggest sticking to core ANSI C when 
> > you're trying to write a portable library in C.  That means using 
> > malloc() and free() -- or better, callbacks supplied by the user of 
> > the library -- rather than the nonstandard alloca() for memory 
> > management.
> > 
> 
> I wholeheartedly agree.  Why make things hard for lots of people.  
> If you're writing software that you'd like other people to be able
> to use, then you have to write to the common denominator.  

The common denominator in this case would degrade performance and
significantly increase memory usage due to heap fragmentation.
Installing the bloody compiler patches (or finding a working alloca())
is the correct solution.

We want vorbis to be available for all platforms... but we don't
necessarily feel like granting all users out there the inalienable
right to be able to compile it with any version of any compiler they
choose.  We don't have the resources.

Monty

--- >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