(* Step 1: the smallest thing that proves OCaml code can be reached from a C [main]. One function, registered by name, called back from C. *) let () = Callback.register "spike_greet" (fun (n : int) -> Printf.sprintf "ocaml saw %d, unix says pid %d" n (Unix.getpid ()))