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.arm.64.assembler
kernel
system
;
M:
arm.64
param-regs
drop
{
{
int-regs
{
X0
X1
X2
X3
X4
X5
X6
X7
X8
}
}
{
float-regs
{
V0
V1
V2
V3
V4
V5
V6
V7
}
}
}
;
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
}
}
}
;