From: timv@ccad.uiowa.edu (Timothy VanFosson)
Subject: Re: Need alloca which allocates storage IN the stack frame (Ultrix)
Date: Thu, 21 Jan 1993 16:30:51 GMT [thread overview]
Message-ID: <1993Jan21.163051.6773@ccad.uiowa.edu> (raw)
In-Reply-To: 9915020@zl2tnm.gen.nz
From article <9915020@zl2tnm.gen.nz>, by don@zl2tnm.gen.nz (Don Stokes):
> timv@ccad.uiowa.edu (Timothy VanFosson) writes:
>> Does anyone have an implementation of alloca() which actually
>> sets aside storage in the stack frame? I'm trying to port
>> the NIH Class Library and have everything working except the
>> process classes, and I've narrowed it down to the DEC implementation
>> of alloca() not being what NIH expects.
>
> You don't say what system you want this for. It kinda matters, since you
> can't really do an alloca() in C.
>
> Anyway, since it's short, here's a VAX MACRO alloca() (code filched from GCC,
> comments by me):
>
Thanks for the response, but (as you point out) I neglected to mention
that this is for a DECStation 5000/200. Thanks also to those who
have suggested GNU Emacs/GCC alloca(), but it works (doesn't work :-)
in the same manner as the DEC alloca() -- the storage allocated is
not IN the stack. I had already tried it before I posted.
I am still looking for an (assembly) version of alloca() which
does manipulate the stack to allocate storage.
--tv
--
Timothy VanFosson E-mail : timv@ccad.uiowa.edu
Senior Systems Analyst US Mail : CAD-Research
University of Iowa 228 ERF
Phone: (319) 335-5728 FAX: (319) 335-6061 Iowa City, Iowa 52242
next prev parent reply other threads:[~1993-01-21 16:30 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
1993-01-19 20:40 Need alloca which allocates storage IN the stack frame (Ultrix) Timothy VanFosson
1993-01-20 14:52 ` zrepachol
1993-01-21 11:16 ` Don Stokes
1993-01-21 16:30 ` Timothy VanFosson [this message]
1993-01-21 22:58 ` John Wroclawski
1993-01-22 14:47 ` Marcus J Ranum
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox