1964N/A(***********************************************************************)
1964N/A(* Xavier Leroy, projet Gallium, INRIA Rocquencourt *)
1964N/A(* Copyright 2009 Institut National de Recherche en Informatique et *)
1964N/A(* en Automatique. All rights reserved. This file is distributed *)
1964N/A(* under the terms of the GNU Library General Public License, with *)
1964N/A(* the special exception on linking described in file ../../LICENSE. *)
1964N/A(***********************************************************************)
1964N/A(* Dumps a bytecode binary file *)
1964N/Alet input_stringlist ic len =
1964N/A let get_string_list sect len =
1964N/A let _ = really_input ic sect 0 len in
1964N/Alet p_title title = print "%s:\n" title
1964N/Alet p_section title format pdata = function
1964N/A (fun (name, data) -> print format (pdata data) name)
1964N/Alet p_list title format = function
1964N/A (fun name -> print format name)
1964N/A let ic = open_in_bin input_name in
1964N/A if len > 0 then match section with
1964N/A let prims = (input_stringlist ic len) in
1964N/A print "Uses unsafe features: ";
1964N/A p_list "Primitives declared in this module"
1964N/A with Not_found | Failure _ | Invalid_argument _ -> ()
1964N/A ["CRCS"; "DLLS"; "DLPT"; "PRIM"];
1964N/A | Invalid_argument("index out of bounds") ->