* linux alpha calling convention
@ 1999-04-26 4:00 david_morse
1999-04-26 4:00 ` Georg Acher
0 siblings, 1 reply; 2+ messages in thread
From: david_morse @ 1999-04-26 4:00 UTC (permalink / raw)
Hi,
Does anyone know where I can find the calling conventions for linux on alpha?
Thanks,
David
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: linux alpha calling convention
1999-04-26 4:00 linux alpha calling convention david_morse
@ 1999-04-26 4:00 ` Georg Acher
0 siblings, 0 replies; 2+ messages in thread
From: Georg Acher @ 1999-04-26 4:00 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1999-04-26 4:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-04-26 4:00 linux alpha calling convention david_morse
1999-04-26 4:00 ` Georg Acher
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox