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 not native.
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 1999-03-04 (18:57)
From: Hugh Sasse <hgs@d...>
Subject: ocaml not native.
In htmlman/node9.html it says:

In script mode, the first line of the script is ignored if it starts with
#!. Thus, it is theoretically possible to
   make the script itself executable and put as first line
#!/usr/local/bin/ocaml, thus calling the
   toplevel system automatically when the script is run. However, ocaml
itself is a #! script on most
   installations of Objective Caml, and Unix kernels usually do not handle
nested #! scripts.

ocamlopt builds successfully on my systems.  Is there a reason why
the installation doesn't rebuild ocaml to be native code, when it can?
Is there a good reason not to attempt this myself?

(From/De :

    Dans htmlman/node9.html il indique: 

      **time-out** dans sequence type mode, premier ligne
       sequence type ignorer si demarrer avec #!.
     ainsi, theorique possible pour faire sequence type
       soi-meme executable et mettre comme d'abord
     ligne #!/usr/local/bin/ocaml, ainsi appeler toplevel
       systeme automatique quand sequence type
     exicuter. Cependant, l'ocaml lui-mjme est a #! siquence
       type sur la plupart des installations de
     Caml objectif, et les grains d'Unix habituellement ne
       manipulent pas embonte #! des sequences type.

     constructions d'ocamlopt avec succes sur mes systemes.
      Y a-t-il une raison pour laquelle
    l'installation ne reconstruit pas l'ocaml pour etre
      code indigene, quand elle peut? Y a-t-il une
    bonne raison de ne pas essayer ceci moi-meme? 
 Desole, mon Pine ne supportera pas des accents. 

	Thank you/merci,