[m-rev.] Re: diff: java tail recursion optimization
Fergus Henderson
fjh at cs.mu.OZ.AU
Mon Feb 11 22:29:05 AEDT 2002
On 11-Feb-2002, Fergus Henderson <fjh at cs.mu.oz.au> wrote:
> Implement tail call optimization for the Java back-end.
> Also change tail call optimization for the C back-end to
> use while/break/continue rather than gotos.
Sorry, I forgot to include this file:
compiler/handle_options.m:
Don't disable tail recursion optimization when compiling Java.
Workspace: /home/ceres/fjh/mercury
Index: compiler/handle_options.m
===================================================================
RCS file: /home/mercury1/repository/mercury/compiler/handle_options.m,v
retrieving revision 1.127
diff -u -d -r1.127 handle_options.m
--- compiler/handle_options.m 7 Feb 2002 07:21:12 -0000 1.127
+++ compiler/handle_options.m 11 Feb 2002 11:27:23 -0000
@@ -313,7 +313,6 @@
% store nondet environments on the heap.
% XXX no static ground terms should be eliminated in a later
% version.
- % XXX The Java backend should eventually support optimizing tailcalls.
( { Target = java } ->
globals__io_set_option(highlevel_code, bool(yes)),
globals__io_set_option(highlevel_data, bool(yes)),
@@ -321,7 +320,6 @@
globals__io_set_option(nondet_copy_out, bool(yes)),
globals__io_set_option(det_copy_out, bool(yes)),
globals__io_set_option(num_tag_bits, int(0)),
- globals__io_set_option(optimize_tailcalls, bool(no)),
globals__io_set_option(static_ground_terms, bool(no)),
globals__io_set_option(put_nondet_env_on_heap, bool(yes))
;
--
Fergus Henderson <fjh at cs.mu.oz.au> | "I have always known that the pursuit
The University of Melbourne | of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh> | -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-reviews mailing list
post: mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------
More information about the reviews
mailing list