2006-04-03 02:18:56 -04:00
|
|
|
IN: compiler
|
|
|
|
USING: assembler kernel kernel-internals math ;
|
2005-09-04 19:24:24 -04:00
|
|
|
|
2005-09-05 17:14:15 -04:00
|
|
|
! PowerPC register assignments
|
|
|
|
! r3-r10 vregs
|
|
|
|
! r14 data stack
|
|
|
|
! r15 call stack
|
|
|
|
|
2005-09-09 22:34:24 -04:00
|
|
|
: fixnum-imm? ( -- ? )
|
|
|
|
#! Can fixnum operations take immediate operands?
|
|
|
|
f ; inline
|
|
|
|
|
2005-12-04 22:06:12 -05:00
|
|
|
: vregs { 3 4 5 6 7 8 9 10 } ; inline
|
2005-10-18 20:19:10 -04:00
|
|
|
|
2005-12-24 16:08:15 -05:00
|
|
|
M: int-regs return-reg drop 3 ;
|
2006-02-13 22:20:39 -05:00
|
|
|
M: int-regs fastcall-regs drop { 3 4 5 6 7 8 9 10 } ;
|
2005-12-24 16:08:15 -05:00
|
|
|
|
|
|
|
M: float-regs return-reg drop 1 ;
|
2006-02-13 22:20:39 -05:00
|
|
|
M: float-regs fastcall-regs drop { 1 2 3 4 5 6 7 8 } ;
|
2005-10-18 20:19:10 -04:00
|
|
|
|
|
|
|
! Mach-O -vs- Linux/PPC
|
2006-03-21 00:44:19 -05:00
|
|
|
: stack@ macosx? 24 8 ? + ;
|
|
|
|
: lr@ macosx? 8 4 ? + ;
|