Browse thread
[Caml-list] bytecode apps without stdlib/pervasives
- Jonathan Roewen
[
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: | 2005-11-15 (22:45) |
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