From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,763912e615d90574 X-Google-Attributes: gid111c93,public From: acher@informatik.tu-muenchen.de (Georg Acher) Subject: Re: linux alpha calling convention Date: 1999/04/26 Message-ID: <7g1g56$l1f$1@sunsystem5.informatik.tu-muenchen.de>#1/1 X-Deja-AN: 470989208 Distribution: world References: <7g0cpc$53e$1@nnrp1.dejanews.com> Organization: Technische Universitaet Muenchen, Germany Newsgroups: comp.os.linux.alpha Originator: acher@hphalle4.informatik.tu-muenchen.de In article <7g0cpc$53e$1@nnrp1.dejanews.com>, david_morse@my-dejanews.com writes: |> Hi, |> Does anyone know where I can find the calling conventions for linux on alpha? They are the same as for OSF/1 (or Digital Unix or TrueUnix or what it is called today). If found a document called 'OSF/1 calling standard' or the like at the Digital Website some time ago. In short: $0/$f0: return value $1-$8: scratch, not saved $9-$14: scratch, must be saved by callee $15(fp): frame pointer $16-$21/$f16-$f21: procedure parameters (remaining on stack), can be modified $22-$25: scratch, not saved $26(ra): return address $27(pv): procedure value (ie. start address of called code) $29(gp): global pointer $30(sp): stack pointer Some of the FP-regs also have to be preserved during a call... -- Bye Georg Acher, acher@in.tum.de http://www.in.tum.de/~acher/ "Oh no, not again !" The bowl of petunias