]> gitweb.factorcode.org Git - factor.git/blob - basis/cpu/x86/64/winnt/winnt.factor
a398c6565c651d383b783171e313fcd909f81a34
[factor.git] / basis / cpu / x86 / 64 / winnt / winnt.factor
1 ! Copyright (C) 2008 Slava Pestov.
2 ! See http://factorcode.org/license.txt for BSD license.
3 USING: kernel layouts system math alien.c-types sequences
4 compiler.cfg.registers cpu.architecture cpu.x86.assembler cpu.x86
5 cpu.x86.assembler.operands ;
6 IN: cpu.x86.64.winnt
7
8 M: int-regs param-regs drop { RCX RDX R8 R9 } ;
9
10 M: float-regs param-regs drop { XMM0 XMM1 XMM2 XMM3 } ;
11
12 M: x86.64 reserved-stack-space 4 cells ;
13
14 M: x86.64 return-struct-in-registers? ( c-type -- ? )
15     heap-size { 1 2 4 8 } member? ;
16
17 M: x86.64 value-struct? heap-size { 1 2 4 8 } member? ;
18
19 M: x86.64 dummy-stack-params? f ;
20
21 M: x86.64 dummy-int-params? t ;
22
23 M: x86.64 dummy-fp-params? t ;
24
25 M: x86.64 temp-reg RAX ;
26