From: acher@informatik.tu-muenchen.de (Georg Acher)
Subject: Re: linux alpha calling convention
Date: 1999/04/26 [thread overview]
Message-ID: <7g1g56$l1f$1@sunsystem5.informatik.tu-muenchen.de> (raw)
In-Reply-To: 7g0cpc$53e$1@nnrp1.dejanews.com
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
prev parent reply other threads:[~1999-04-26 4:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-04-26 4:00 linux alpha calling convention david_morse
1999-04-26 4:00 ` Georg Acher [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox