1 /**************************************************************************/ 2 /* */ 3 /* OCaml */ 4 /* */ 5 /* Xavier Leroy, projet Cristal, INRIA Rocquencourt */ 6 /* */ 7 /* Copyright 1996 Institut National de Recherche en Informatique et */ 8 /* en Automatique. */ 9 /* */ 10 /* All rights reserved. This file is distributed under the terms of */ 11 /* the GNU Lesser General Public License version 2.1, with the */ 12 /* special exception on linking described in the file LICENSE. */ 13 /* */ 14 /**************************************************************************/ 15 16 /* The bytecode interpreter */ 17 18 #ifndef CAML_INTERP_H 19 #define CAML_INTERP_H 20 21 #ifdef CAML_INTERNALS 22 23 #include "misc.h" 24 #include "mlvalues.h" 25 26 /* interpret a bytecode */ 27 value caml_interprete (code_t prog, asize_t prog_size); 28 29 /* tell the runtime that a bytecode program might be needed */ 30 void caml_prepare_bytecode(code_t prog, asize_t prog_size); 31 32 /* tell the runtime that a bytecode program is no more needed */ 33 void caml_release_bytecode(code_t prog, asize_t prog_size); 34 35 #endif /* CAML_INTERNALS */ 36 37 #endif /* CAML_INTERP_H */ 38