annotate lab4/tran.mli @ 0:bfdcc3820b32

Basis
author Mike Spivey <mike@cs.ox.ac.uk>
date Thu, 05 Oct 2017 08:04:15 +0100
parents
children
rev   line source
0
Mike Spivey <mike@cs.ox.ac.uk>
parents:
diff changeset
1 (* lab4/tran.mli *)
Mike Spivey <mike@cs.ox.ac.uk>
parents:
diff changeset
2 (* Copyright (c) 2017 J. M. Spivey *)
Mike Spivey <mike@cs.ox.ac.uk>
parents:
diff changeset
3
Mike Spivey <mike@cs.ox.ac.uk>
parents:
diff changeset
4 (* The function |translate| takes the body of a procedure (represented
Mike Spivey <mike@cs.ox.ac.uk>
parents:
diff changeset
5 as a list of optrees) and generates machine code as a sequence of calls
Mike Spivey <mike@cs.ox.ac.uk>
parents:
diff changeset
6 to the interface provided by the Target module. *)
Mike Spivey <mike@cs.ox.ac.uk>
parents:
diff changeset
7
Mike Spivey <mike@cs.ox.ac.uk>
parents:
diff changeset
8 (* |translate| -- generate code for a procedure body *)
Mike Spivey <mike@cs.ox.ac.uk>
parents:
diff changeset
9 val translate :
Mike Spivey <mike@cs.ox.ac.uk>
parents:
diff changeset
10 Optree.symbol -> int -> int -> int -> Optree.optree list -> unit
Mike Spivey <mike@cs.ox.ac.uk>
parents:
diff changeset
11
Mike Spivey <mike@cs.ox.ac.uk>
parents:
diff changeset
12 val debug : int ref