Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!uunet!portal!cup.portal.com!Don_A_Corbitt From: Don_A_Corbitt@cup.portal.com Newsgroups: comp.lang.c Subject: Re: What is alloca()? [Is this unportable implementation OK?] Message-ID: <22638@cup.portal.com> Date: 29 Sep 89 06:18:05 GMT References: <3823.2518c141@uwovax.uwo.ca> <3839.251f4ecf@uwovax.uwo.ca> Organization: The Portal System (TM) Lines: 7 The alloca() you posted for Turbo C will usually work. Notably, it will not work for some floating point code - TC 'knows' how far the stack pointer is from the frame pointer. It subtracts from the stack pointer, then stores relative the frame pointer. If you have alloca()'ed, it don't work no good. Don_A_Corbitt@cup.portal.com "Trying for next month's bandwidth-waster posting"