Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!samsung!zaphod.mps.ohio-state.edu!mips!servitude!rogerk From: rogerk@mips.COM (Roger B.A. Klorese) Newsgroups: comp.sys.mips Subject: Re: Using alloca Message-ID: <36788@mips.mips.COM> Date: 7 Mar 90 15:19:44 GMT References: <18451@shamash.cdc.com> Sender: news@mips.COM Reply-To: rogerk@mips.COM (Roger B.A. Klorese) Organization: MIPS Computer Systems, Sunnyvale, CA Lines: 13 In article <18451@shamash.cdc.com> mak@easyaspi.udev.cdc.com (marlys a kohnke x2793) writes: >I would like to use alloca to allocate memory on the stack. The man page >says alloca is machine dependent and its use is discouraged. Does alloca >work with mips and are there any potential problems with its use? The about-to-be-released 2.10 compilers include alloca. Include and you get a machine-dependent _builtin_alloca; don't, and you get a portable emulation thereof. -- ROGER B.A. KLORESE MIPS Computer Systems, Inc. phone: +1 408 720-2939 MS 4-02 928 E. Arques Ave. Sunnyvale, CA 94086 rogerk@mips.COM {ames,decwrl,pyramid}!mips!rogerk "I'm the NLA" "Two guys, one cart, fresh pasta... *you* figure it out." -- Suzanne Sugarbaker