Path: utzoo!mnetor!uunet!husc6!hao!boulder!sunybcs!bingvaxu!leah!itsgw!imagine!pawl20.pawl.rpi.edu!jesup From: jesup@pawl20.pawl.rpi.edu (Randell E. Jesup) Newsgroups: comp.sys.amiga Subject: Re: Structure alignment in Manx C Message-ID: <380@imagine.PAWL.RPI.EDU> Date: 17 Feb 88 06:50:08 GMT References: <8802160646.AA14996@cory.Berkeley.EDU> Sender: news@imagine.PAWL.RPI.EDU Reply-To: jesup@pawl20.pawl.rpi.edu (Randell E. Jesup) Organization: RPI Public Access Workstation Lab - Troy, NY Lines: 14 In article <8802160646.AA14996@cory.Berkeley.EDU> dillon@CORY.BERKELEY.EDU (Matt Dillon) writes: > ptr = salloc(bytes) (allocates on a longword boundry) > spop() pops the allocated stack frame, must > call before return statement / end of > subroutine. Actually, spop() isn't needed before an exit at all. Lattice (and I'm fairly sure Manx) use the unlink instruction, which will restore the old stack pointer. The only thing to watch out for is stack overflow. // Randell Jesup Lunge Software Development // Dedicated Amiga Programmer 13 Frear Ave, Troy, NY 12180 \\// beowulf!lunge!jesup@steinmetz.UUCP (518) 272-2942 \/ (uunet!steinmetz!beowulf!lunge!jesup) BIX: rjesup