Re: BSD optimized code

From: Jacques GARRIGUE (garrigue@kurims.kyoto-u.ac.jp)
Date: Tue Apr 01 1997 - 13:29:32 MET DST


Date: Tue, 1 Apr 1997 20:29:32 +0900
Message-Id: <9704011129.AA05372@safran.kurims.kyoto-u.ac.jp>
From: Jacques GARRIGUE <garrigue@kurims.kyoto-u.ac.jp>
To: orodeh@cs.huji.ac.il
In-Reply-To: <199703310617.JAA24176@harpo.cs.huji.ac.il> (message from Ohad
Subject: Re: BSD optimized code

   Date: Mon, 31 Mar 1997 09:17:44 +0300 (IDT)
   From: Ohad Rodeh <orodeh@cs.huji.ac.il>

     Does ocaml-1.05 create optimized code for the BSD operating
   system version 2.1, with a pentium cpu?

Yes, the native code compiler is optimizing on all platforms.

   PS
     I got the following errors while trying to compile the "opt"
   option:

           gcc -c -DSYS_bsd -o i386.o i386.S
           i386.S:40:invalid character '_' in opcode
           .....

The assembler of BSD/OS 2.1 is not compatible with its preprocessor !
I had the same problem, and finally resolved it by generating the
preprocessed source, and removing unnecessary space by hand. The
problem is that there should be no space between a label and the colon
following it, bu the preprocessor introduce some, and then mixes up
labels and opcodes.

Hope it helps.

        Jacques

---------------------------------------------------------------------------
Jacques Garrigue Kyoto University garrigue@kurims.kyoto-u.ac.jp
                <A HREF=http://wwwfun.kurims.kyoto-u.ac.jp/~garrigue/>JG</A>



This archive was generated by hypermail 2b29 : Sun Jan 02 2000 - 11:58:10 MET