home *** CD-ROM | disk | FTP | other *** search
- Path: nef.ens.fr!drakkar!espie
- From: espie@drakkar.ens.fr (Marc Espie)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: alloca() on Amiga?
- Date: 27 Mar 1996 11:33:45 GMT
- Organization: Ecole Normale Superieure, Paris
- Message-ID: <4jb92p$6vc@nef.ens.fr>
- References: <2720tdg60.alamito@marketgraph.xs4all.nl>
- NNTP-Posting-Host: drakkar.ens.fr
- Keywords: alloca
-
- 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).
-
- There is one in gcc when needed. There used to be some implementation of
- alloca() for SAS/C, but I'm not sure it will work efficiently anymore
- (as SAS/6.50 and above no longer feels like playing with the stackframe
- that much)... the idea was to just use each call to alloca() to check the
- stack frame and free all memory no longer in use.
-
- Don't use it to develop new software, only for porting though, as using
- huge stacks is VERY unfriendly to the whole Amiga OS (crash-prone,
- inefficient, and so on).
- --
- [nosave]<http://www.eleves.ens.fr:8080/home/espie/index.html>
- microsoft network is EXPLICITLY forbidden to redistribute this message.
- `Moon purismu powa, make up.... Tsuki ni kawatte, oshiokiyo !'
- Marc Espie (Marc.Espie@ens.fr)
-