Version française
Home     About     Download     Resources     Contact us    
Browse thread
Ocamlopt for R4000?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Xavier Leroy <Xavier.Leroy@i...>
Subject: Re: Ocamlopt for R4000?
> We have just started a project to develop an MPI-based ocaml compiler
> for an NEC's massively parallel machine called Cenju-4.  The target
> machine comes with sixty-four R4000 processors communicating via
> highspeed processor network.  Unfortunately, the MIPS family the latest
> version of ocaml supports seems to be R10000 or higher.

I don't have my MIPS manuals handy right now, but as far as I can
remember, all MIPS processors except the R2000 and R3000 should work.

>From the nice logs made available by Yozo Toda, the problem seems to
be with the operating system rather than with the processors.  Namely,
there is one piece of strongly OS-specific code in the ocamlopt
runtime system.  It's a signal handler that needs (on some target
processors, including the MIPS) to access the saved register state at
the time the signal was taken.  How to do so depends strongly on the
operating system.  The current code for the MIPS works on IRIX and
perhaps Ultrix as well, but doesn't seem to work on your
machine. You'll have to look at the manual pages for signal-handling
routines, and perhaps also at /usr/include/signal.h, to see how to do
it for your operating system.

Regards,

- Xavier Leroy