From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: Knowing where a function has been used (bis) [Was: Re: Optimising Elisp code] Date: Sun, 07 Oct 2018 09:19:58 -0400 Message-ID: References: <638fb7dc-6fc5-4645-8793-97a00038a3a8@googlegroups.com> <8hxojvzzzzzz.m4h.xxuns.g6.gal@portable.galex-713.eu> <20181006192457.GB7368@tuxteam.de> <86lg79yl54.fsf@zoho.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1538918320 30418 195.159.176.226 (7 Oct 2018 13:18:40 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 7 Oct 2018 13:18:40 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Oct 07 15:18:36 2018 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g98x9-0007oo-Rf for geh-help-gnu-emacs@m.gmane.org; Sun, 07 Oct 2018 15:18:35 +0200 Original-Received: from localhost ([::1]:42417 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g98zG-0006hV-Fo for geh-help-gnu-emacs@m.gmane.org; Sun, 07 Oct 2018 09:20:46 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40789) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g98yk-0006hO-1i for help-gnu-emacs@gnu.org; Sun, 07 Oct 2018 09:20:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g98ye-00052P-9X for help-gnu-emacs@gnu.org; Sun, 07 Oct 2018 09:20:13 -0400 Original-Received: from [195.159.176.226] (port=38095 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g98ye-00051i-2d for help-gnu-emacs@gnu.org; Sun, 07 Oct 2018 09:20:08 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1g98wT-0006tR-KP for help-gnu-emacs@gnu.org; Sun, 07 Oct 2018 15:17:53 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 20 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:4m5r4KYSSvxJiw00tM8LiU/9IFg= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 195.159.176.226 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:118179 Archived-At: > (defun add-two-digits (a b) > (+ a b) ) > > (defsubst add-two-digits-inline (i j) > (+ i j) ) > > (defun add-it () > (add-two-digits 5 10) > (add-two-digits-inline 15 5) ) > > This byte-compiles with no warnings/errors. > > So what happens then, and what happens when > "add-it" is called? Try M-x disassemble RET add-it RET to see how the two calls where compiled. Stefan