home *** CD-ROM | disk | FTP | other *** search
- Path: solaris.cc.vt.edu!enterprise!not-for-mail
- From: u3642295@chula.edu (Soravut Kruavit)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: alloca() on Amiga?
- Date: 18 Apr 1996 11:35:26 GMT
- Organization: Chulalongkorn University
- Message-ID: <4l59du$bdo@enterprise.netserv.chula.ac.th>
- References: <2720tdg60.alamito@marketgraph.xs4all.nl> <4k1oce$lub@blackice.winternet.com> <DpE7Ip.7or@unx.sas.com> <393brdv60.alamito@marketgraph.xs4all.nl>
- NNTP-Posting-Host: columbia.chula.edu
- X-Newsreader: TIN [UNIX 1.3 950824BETA PL0]
-
- Ruud van Gaal (rvg@marketgraph.xs4all.nl) wrote:
- kkl;
- : In <DpE7Ip.7or@unx.sas.com> walker@chang.unx.sas.com (Doug Walker)
- wrote: : >In article <4k1oce$lub@blackice.winternet.com>,
- : >Anthony Pang <apang@winternet.com> wrote:
- : >>In article <2720tdg60.alamito@marketgraph.xs4all.nl>,
- : >>Ruud van Gaal <rvg@marketgraph.xs4all.nl> wrote:
- : >>>Is there a nice way to get a working alloca() function for the Amiga?
- : >>>It is present on all PC and Unix C implementations, but not on the Amiga.
- : >>>(it allocates mem from the stack, automatically freeing it upon return
- : from
- : >>>subroutine).
- : >>
- : >>GCC and SAS have alloca(). I think DICE has it too.
- : >
- : >This is not correct. SAS/C does not supply an alloca() function.
- : >Third parties may have been able to implement one, but it's not
- : >a trivial operation.
- :
- : Indeed, SAS doesn't have one, but I've received source code for an
- : implementation which does not free memory upon function exit (would be very
- : tricky), but somewhere at a later point (garbage collection). It's not really
- : the ideal thing, but it's close (enough for now).
- : Thanks for all the replies!
- :
- :
- :
- : --
- : Ruud van Gaal
- : MarketGraph Visual Automation
- : E-Mail : rvg@marketgraph.xs4all.nl
- : DoomShell 4.5 homepage: http://www.xs4all.nl/~jwkorver
- : "...Works fascinates me. I could sit and watch it for hours..."
- :
-