English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
[Caml-list] bytecode apps without stdlib/pervasives
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2005-11-15 (22:45)
From: Jonathan Roewen <jonathan.roewen@g...>
Subject: [Caml-list] bytecode apps without stdlib/pervasives

I have a simple ML file (test.ml):

external raise : exn -> 'a = "%raise";;

raise End_of_file;;

so I can check how the compiler does things (like if predefined ocaml
symbols are still present without stdlib present), and compile as:

ocamlc -nostdlib -nopervasives test.ml, which generates a.out.

when I run it, I get error: "-bash: ./a.out: cannot execute binary
file" (btw, generates expected behabiour without those flags)

why can't it execute it? can we only use -nostdlib as long as we
provide our own pervasives module?