[tremor] good version of alloca()

timmy brolin timmy at home.se
Mon Oct 14 15:46:24 PDT 2002



Yes, alloca() is far from common. It doesn't look like IAR systems have implemented it for example.

MS does provides a alloca function, but it is named differently. ___alloca() or something like that I think.

/T

-----Original Message-----
From: Jon Beniston <jbeniston at siroyan.com>
To: tremor at xiph.org
Date: Mon, 14 Oct 2002 17:52:13 +0100
Subject: Re: [tremor] good version of alloca()

timmy brolin wrote:
> 
> Can alloca() be replaced by malloc() and free ?
> That'd be a nice patch sine many dev systems don't include alloca().
> 

I think the deal is that alloca allocates from the stack instead of the
heap which is desirable in some situations. Given that there are quite a
few platforms where this isn't implementated, it might be nice to add a
level of abstraction with some #define magic that allows either alloca
to be selected or malloc if the former doesn't exist.

Cheers,
JonB

> -----Original Message-----
> From: "David Hembrow" <david.hembrow at acis-cam.uk.com>
> To: <tremor at xiph.org>
> Date: Mon, 14 Oct 2002 12:29:12 +0100
> Subject: RE: [tremor] good version of alloca()
> 
> I'm using the ARM ADS, which has replaced the SDT. This
> includes alloca().
> 
> David.
> 
> -----Original Message-----
> From: owner-tremor at xiph.org [mailto:owner-tremor at xiph.org]On Behalf Of
> robert anderberg
> Sent: 13 October 2002 23:30
> To: tremor at xiph.org
> Subject: [tremor] good version of alloca()
> 
> hi,
> 
> can anyone point me at a decent version of alloca() as i dont have it on my dev system (ARM SDT).
> 
> thanks,
> 
> rob
> 
> --- >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.
> 
> --- >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.
> 
> --- >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.

<p>**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************
--- >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.

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