Browse thread
[Caml-list] The Bytecode Interpreter...
-
Jonathan Roewen
- David MENTRE
- Jonathan Roewen
- 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: | -- (:) |
| From: | Jonathan Roewen <jonathan.roewen@g...> |
| Subject: | Re: [Caml-list] The Bytecode Interpreter... |
Hi once again,
Hopefully this'll be my last problem to solve ;-)
I've got ocamlrun + a bytecode app running on the bare metal, finally =)
The following works fine:
print_endline "Hello, World";;
but, the following fails:
Printf.printf "Hello, World\n%!";;
with a print_endline statement before it, not even that gets run, so
it appears to be a problem with loading the bytecode itself.
The bytecode app is created using ocamlc -output-obj, and the .o file
is linked into my kernel. I then call caml_startup(argv), where argv =
{ "" }.
I've also experienced the same problem (appearing to not load/run the
bytecode) when using Scanf & Hashtbl modules (so it's not isolated to
Printf).
What is the bytecode interpreter trying to do? Any clues? ;-) I'm
trying to debug file open calls and things, but nothing appears to
show up, and I don't get any errors printed to stdout/stderr by the
interpreter.
Jonathan