Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
Ocaml on a DEC alpha
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Jocelyn Serot <Jocelyn.Serot@l...>
Subject: Ocaml on a DEC alpha

I'm trying to use ocamlopt to generate binary executables for a machine
built upon DEC Alpha (21066) processors.
Cross-compilation is done on a Sun Ultra under Solaris.
As explained by X. Leroy in a recent mail, i've edited the config/Makefile
to use my specific cross-compiler/assembler and patched the name of
the assembler in the relevant files.

I have some problems with the assembly code given in asmrun/alpha.S and
generated when compiling stdlib/*.ml. For example:

    alpha.S:151: Warning: Illegal operands
        (* line 151 is:             jsr     garbage_collection *)

        alpha.S:238: Warning: Illegal operands
        (* line 238 is:             jsr     ($25) *)

        /tmp/camlasm9.s:1200: Error: Unknown opcode: `ldbu'
        (* when compiling stdlib/, line 577 is:  ldbu    $2, 0($3) *)


The cross-assembler is a bundled derivative of GNU as (verbose option gives: 
   GNU assembler version 2.6 (alpha-dec-netbsd10), using BFD version 2.6)
and i could not find any information on the Alpha assembly language in the
GNU as doc. 
I was therefore wondering if someone who has played with the Alpha could give
me any hint..


J. Serot

E-mail: .............................
S-mail: LASMEA - UMR 6602 CNRS, Universite Blaise Pascal, 63177 Aubiere cedex
Tel: (33) 04 - Fax: (33) 04 .........................