Version française
Home     About     Download     Resources     Contact us    
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: -- (:)
From: Jonathan Roewen <jonathan.roewen@g...>
Subject: [Caml-list] bytecode apps without stdlib/pervasives
Hi,

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?

Jonathan