[parent not found: <mailman.18959.1359944577.855.help-gnu-emacs@gnu.org>]
* About `disassemble'
@ 2013-02-04 2:22 Xue Fuqiao
0 siblings, 0 replies; 4+ messages in thread
From: Xue Fuqiao @ 2013-02-04 2:22 UTC (permalink / raw)
To: help-gnu-emacs
I have a question about `disassemble' in Emacs Lisp:
(defun silly-loop (n)
"Return time before and after N iterations of a loop."
(let ((t1 (current-time-string)))
(while (> (setq n (1- n))
0))
(list t1 (current-time-string))))
=> silly-loop
(disassemble 'silly-loop)
=>
byte code for silly-loop:
doc: Return time before and after N iterations of a loop.
args: (n)
0 constant current-time-string
1 call 0
2 varbind t1
3:1 varref n
4 sub1
5 dup
6 varset n
7 constant 0
8 gtr
9 goto-if-not-nil 1
12 varref t1
13 constant current-time-string
14 call 0
15 unbind 1
16 list2
17 return
What does the number at the left side mean (i.e. 0, 1, 2, 3:1, ... ,
17)? It isn't explained in the Emacs Lisp manual. Can anybody help?
Thanks.
--
Best regards, Xue Fuqiao.
http://www.emacswiki.org/emacs/XueFuqiao
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-02-05 4:13 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <mailman.1076648.1359949809.854.help-gnu-emacs@gnu.org>
2013-02-05 0:06 ` About `disassemble' Xue Fuqiao
2013-02-05 4:13 ` Stefan Monnier
[not found] <mailman.18959.1359944577.855.help-gnu-emacs@gnu.org>
2013-02-04 3:46 ` Stefan Monnier
2013-02-04 2:22 Xue Fuqiao
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.