Article View: comp.sys.dec
Article #4341Re: Need alloca which allocates storage IN the stack frame (Ultrix)
From: Timothy VanFosson
Date: Thu, 21 Jan 1993 16:30
Date: Thu, 21 Jan 1993 16:30
31 lines
1829 bytes
1829 bytes
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
Technical Details
Message-ID:
<1993Jan21.163051.6773@ccad.uiowa.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!news.uiowa.edu!ccad.uiowa.edu!timvReferences:
<9915020@zl2tnm.gen.nz>Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.dec Path: arc1-ca.pugleaf.net!sparky!uunet!news.uiowa.edu!ccad.uiowa.edu!timv From: timv@ccad.uiowa.edu (Timothy VanFosson) Subject: Re: Need alloca which allocates storage IN the stack frame (Ultrix) Message-ID: <1993Jan21.163051.6773@ccad.uiowa.edu> Organization: CAD-Research, U. of Iowa, Iowa City, Iowa References: <9915020@zl2tnm.gen.nz> Date: Thu, 21 Jan 1993 16:30:51 GMT Lines: 31