diff options
Diffstat (limited to 'ocaml-binary-annot/asmcomp/emitaux.mli')
| -rw-r--r-- | ocaml-binary-annot/asmcomp/emitaux.mli | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/ocaml-binary-annot/asmcomp/emitaux.mli b/ocaml-binary-annot/asmcomp/emitaux.mli new file mode 100644 index 0000000000..4f666be736 --- /dev/null +++ b/ocaml-binary-annot/asmcomp/emitaux.mli @@ -0,0 +1,52 @@ +(***********************************************************************) +(* *) +(* Objective Caml *) +(* *) +(* Xavier Leroy, projet Cristal, INRIA Rocquencourt *) +(* *) +(* Copyright 1996 Institut National de Recherche en Informatique et *) +(* en Automatique. All rights reserved. This file is distributed *) +(* under the terms of the Q Public License version 1.0. *) +(* *) +(***********************************************************************) + +(* $Id$ *) + +(* Common functions for emitting assembly code *) + +val output_channel: out_channel ref +val emit_string: string -> unit +val emit_int: int -> unit +val emit_nativeint: nativeint -> unit +val emit_int32: int32 -> unit +val emit_symbol: char -> string -> unit +val emit_printf: ('a, out_channel, unit) format -> 'a +val emit_char: char -> unit +val emit_string_literal: string -> unit +val emit_string_directive: string -> string -> unit +val emit_bytes_directive: string -> string -> unit +val emit_float64_directive: string -> string -> unit +val emit_float64_split_directive: string -> string -> unit +val emit_float32_directive: string -> string -> unit + +type frame_descr = + { fd_lbl: int; (* Return address *) + fd_frame_size: int; (* Size of stack frame *) + fd_live_offset: int list; (* Offsets/regs of live addresses *) + fd_debuginfo: Debuginfo.t } (* Location, if any *) + +val frame_descriptors : frame_descr list ref + +type emit_frame_actions = + { efa_label: int -> unit; + efa_16: int -> unit; + efa_32: int32 -> unit; + efa_word: int -> unit; + efa_align: int -> unit; + efa_label_rel: int -> int32 -> unit; + efa_def_label: int -> unit; + efa_string: string -> unit } + +val emit_frames: emit_frame_actions -> unit + +val is_generic_function: string -> bool |
