From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: tomas@tuxteam.de (Tomas Zerolo) Newsgroups: gmane.emacs.devel Subject: Re: gcc and inline [was: Re: New function for gdb-ui.el?] Date: Thu, 27 Oct 2005 06:22:43 +0200 Message-ID: <20051027042243.GA28280@www.trapp.net> References: <17244.34246.93773.562211@kahikatea.snap.net.nz> <17245.17271.523511.307415@kahikatea.snap.net.nz> <17246.47395.926373.263704@kahikatea.snap.net.nz> <17247.17729.366833.431749@kahikatea.snap.net.nz> <20051026150259.GA26307@www.trapp.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0116459723==" X-Trace: sea.gmane.org 1130387198 4451 80.91.229.2 (27 Oct 2005 04:26:38 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 27 Oct 2005 04:26:38 +0000 (UTC) Cc: nickrob@snap.net.nz, Tomas Zerolo , ich@frank-schmitt.net, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 27 06:26:17 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EUzL9-0005Bd-Je for ged-emacs-devel@m.gmane.org; Thu, 27 Oct 2005 06:26:12 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EUzL8-0007WX-RR for ged-emacs-devel@m.gmane.org; Thu, 27 Oct 2005 00:26:10 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EUzKz-0007WI-Pr for emacs-devel@gnu.org; Thu, 27 Oct 2005 00:26:01 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EUzKy-0007W6-AZ for emacs-devel@gnu.org; Thu, 27 Oct 2005 00:26:01 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EUzKx-0007W3-Ld for emacs-devel@gnu.org; Thu, 27 Oct 2005 00:26:00 -0400 Original-Received: from [217.22.192.104] (helo=www.elogos.de) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EUzKw-00042f-Rc; Thu, 27 Oct 2005 00:25:59 -0400 Original-Received: from www.elogos.de (localhost [127.0.0.1]) by www.elogos.de (Postfix) with ESMTP id 27F76DB030; Thu, 27 Oct 2005 06:22:43 +0200 (CEST) Original-Received: by www.elogos.de (Postfix, from userid 4000) id 13B84DB155; Thu, 27 Oct 2005 06:22:43 +0200 (CEST) Original-To: Eli Zaretskii In-Reply-To: User-Agent: Mutt/1.5.6+20040907i X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:44952 Archived-At: --===============0116459723== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="liOOAslEiF7prFVr" Content-Disposition: inline --liOOAslEiF7prFVr Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Oct 26, 2005 at 09:32:39PM +0200, Eli Zaretskii wrote: > > Date: Wed, 26 Oct 2005 17:02:59 +0200 > > From: tomas@tuxteam.de (Tomas Zerolo) > > Cc: ich@frank-schmitt.net, Eli Zaretskii , rms@gnu.org, > > emacs-devel@gnu.org > >=20 > > No, it's just a hint to the compiler. >=20 > Yes, but GCC is generally known for honoring that hint. As Andreas said, GCC seems to be getting lazier lately. (Actually, my knowledge bits were based on a recent experience. -Winline told me, to my surprise, that some short function wasn't being inlined. But (after digging and finding this __inline__ __attribute__ thing) forcing the compiler to do it confirmed the compiler's guess: it wasn't worth the while (the whole thing was faster by about 1 percent, which I consider to be noise). This behaviour was consistent across several gcc versions (2.95 through 3.some). Regards -- tom=C3=A1s --liOOAslEiF7prFVr Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) iD4DBQFDYFYSBcgs9XrR2kYRApKOAJY9rDB/ZyByLZwoM7mvU98G/+DPAJkBOoxz rdN1QENEcovur5GotgJqUA== =zrIP -----END PGP SIGNATURE----- --liOOAslEiF7prFVr-- --===============0116459723== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel --===============0116459723==--