1995-08-09 08:06:35 -07:00
|
|
|
/***********************************************************************/
|
|
|
|
/* */
|
1996-04-30 07:53:58 -07:00
|
|
|
/* Objective Caml */
|
1995-08-09 08:06:35 -07:00
|
|
|
/* */
|
|
|
|
/* Xavier Leroy, projet Cristal, INRIA Rocquencourt */
|
|
|
|
/* */
|
1996-04-30 07:53:58 -07:00
|
|
|
/* Copyright 1996 Institut National de Recherche en Informatique et */
|
1995-08-09 08:06:35 -07:00
|
|
|
/* Automatique. Distributed only by permission. */
|
|
|
|
/* */
|
|
|
|
/***********************************************************************/
|
|
|
|
|
|
|
|
/* $Id$ */
|
|
|
|
|
1995-06-15 01:17:29 -07:00
|
|
|
.globl call_gen_code
|
|
|
|
.ent call_gen_code
|
|
|
|
|
|
|
|
call_gen_code:
|
|
|
|
lda $sp, -80($sp)
|
|
|
|
stq $26, 0($sp)
|
|
|
|
stq $9, 8($sp)
|
|
|
|
stq $10, 16($sp)
|
|
|
|
stq $11, 24($sp)
|
|
|
|
stq $12, 32($sp)
|
|
|
|
stt $f2, 40($sp)
|
|
|
|
stt $f3, 48($sp)
|
|
|
|
stt $f4, 56($sp)
|
|
|
|
stt $f5, 64($sp)
|
|
|
|
mov $16, $27
|
1995-07-07 05:08:38 -07:00
|
|
|
mov $17, $16
|
|
|
|
mov $18, $17
|
|
|
|
mov $19, $18
|
|
|
|
mov $20, $19
|
|
|
|
jsr ($27)
|
1995-06-15 01:17:29 -07:00
|
|
|
ldq $26, 0($sp)
|
|
|
|
ldq $9, 8($sp)
|
|
|
|
ldq $10, 16($sp)
|
|
|
|
ldq $11, 24($sp)
|
|
|
|
ldq $12, 32($sp)
|
|
|
|
ldt $f2, 40($sp)
|
|
|
|
ldt $f3, 48($sp)
|
|
|
|
ldt $f4, 56($sp)
|
|
|
|
ldt $f5, 64($sp)
|
|
|
|
lda $sp, 80($sp)
|
|
|
|
ret ($26)
|
|
|
|
|
|
|
|
.end call_gen_code
|
|
|
|
|
|
|
|
.globl caml_c_call
|
|
|
|
.ent caml_c_call
|
|
|
|
caml_c_call:
|
1995-07-07 09:14:06 -07:00
|
|
|
lda $sp, -16($sp)
|
|
|
|
stq $26, 0($sp)
|
1995-08-24 06:24:18 -07:00
|
|
|
stq $gp, 8($sp)
|
1997-07-26 02:01:39 -07:00
|
|
|
mov $25, $27
|
|
|
|
jsr ($25)
|
1995-07-07 09:14:06 -07:00
|
|
|
ldq $26, 0($sp)
|
1995-08-24 06:24:18 -07:00
|
|
|
ldq $gp, 8($sp)
|
1995-07-07 09:14:06 -07:00
|
|
|
lda $sp, 16($sp)
|
|
|
|
ret ($26)
|
1995-06-15 01:17:29 -07:00
|
|
|
|
|
|
|
.end caml_c_call
|
1995-12-05 05:09:19 -08:00
|
|
|
|