Browse thread
ocamlopt problem
-
Rasool Karimi
-
Rasool Karimi
- Jacques Garrigue
- David MENTRE
- Pierre Etchemaite
- Martin Chabr
-
Rasool Karimi
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Jacques Garrigue <garrigue@m...> |
| Subject: | Re: [Caml-list] ocamlopt problem |
From: Rasool Karimi <rkarimi@gmail.com> > When I compile a .ml file with ocamlopt compiler, an error message is shown > with this message:"Der Befehl "as" ist entweder falsch geschrieben oder > konnte nicht gefunden werden, Assembler error, input left in file > C:\DOKUME~1\karinu\LOKALE~1\Temp\camlasm9312 7a.s". Part of this message is > in german and translation of it in english is : "The instruction "as" is > either wrongly written or could not not be found". But when I compile a .mli > file, this message is not shown and file is compiled successfully. Also when > I compile a .ml file with ocamlc compiler, there is no error and compilation > is done successfully. So there is not error in my program and this error > maybe is related to ocamlopt compiler. The message is to be understood literally: in order to compile assembly code to machine code, ocamlopt relies on an external assembler. I suppose you use either the mingw or cygwin version, so the name of the assembler is "as". You must make sure you installed it with cygwin. With a .mli, there is no object created, so no external command is required. Similarly ocamlc generates bytecode all by itself, so there is no such problem (as long as you don't use the -custom option.) Jacques Garrigue