Handbook
Glossary
param-regs ( abi -- regs )
CPU architecture description model
Prev:
machine-registers ( -- assoc )
Next:
return-regs ( -- regs )
Vocabulary
cpu.architecture
Inputs
abi
a calling convention symbol
Outputs
regs
an
assoc
Word description
Retrieves the order in which machine registers are used for parameters for the given calling convention.
Definition
USING:
system
;
IN:
cpu.architecture
HOOK:
param-regs
cpu
( abi -- regs )
Methods
USING:
cpu.architecture
cpu.x86.assembler.operands
kernel
system
;
M:
x86.64
param-regs
drop
{
{
int-regs
{
RDI
RSI
RDX
RCX
R8
R9
}
}
{
float-regs
{
XMM0
XMM1
XMM2
XMM3
XMM4
XMM5
XMM6
XMM7
}
}
}
;