unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Oliver Scholz <alkibiades@gmx.de>
Subject: Re: tail call reduction
Date: Thu, 10 Feb 2005 11:21:19 +0100	[thread overview]
Message-ID: <87ll9wsokg.fsf@ID-87814.user.uni-berlin.de> (raw)
In-Reply-To: 87k6pgwy7u.fsf@ID-87814.user.uni-berlin.de

My keyboard is haunted by evil spirits. Lots of mistyping in my
previous post. I am not going to offer corrections for the bad
English. But one typo is especially problematic if actually somebody
would take the pain to read my made-up lapcode:

Oliver Scholz <alkibiades@gmx.de> writes:

[...]
> byte code for fact:
>   args: (n)
> 0  goto 3
>
> ;; *** the following used to be `fact-iter' ***
>     1:1     varbind r
>     2       dub
>     3       varbind n
>     4       constant  zerop
>     2       call      1
>     3       goto-if-nil 2
>     4       reg-pop
>     6       varref    r
>     7       reg-push
>     8       unbind 2
>     9       goto-stack
>     10:2     varref    n
>     11      sub1      
>     12      varref    n
>     13      varref    r
>     14      mult      
>     15      unbind 2
>     16      goto 1
>
> ;; *** the main body of `fact' ***
> 17:3    constant  4 ; return point
> 18      varref    n
> 19      constant  1
> 20      goto      2

This should be "20 goto 1".

> 21:4    return    

    Oliver
-- 
22 Pluviôse an 213 de la Révolution
Liberté, Egalité, Fraternité!

  reply	other threads:[~2005-02-10 10:21 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-10  9:39 tail call reduction Oliver Scholz
2005-02-10 10:21 ` Oliver Scholz [this message]
2005-02-10 14:56 ` Stefan Monnier
2005-02-10 22:45   ` Oliver Scholz
2005-02-11  4:50     ` Stefan Monnier
2005-03-02 16:20     ` David Combs
2005-03-02 18:06       ` Oliver Scholz
2005-03-04  0:15         ` Miles Bader
     [not found]         ` <mailman.2542.1109897787.32256.help-gnu-emacs@gnu.org>
2005-03-04  0:56           ` Johan Bockgård
2005-03-04 14:01             ` Miles Bader

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ll9wsokg.fsf@ID-87814.user.uni-berlin.de \
    --to=alkibiades@gmx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).