[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gcc and inline [was: Re: New function for gdb-ui.el?]
From: |
Tomas Zerolo |
Subject: |
Re: gcc and inline [was: Re: New function for gdb-ui.el?] |
Date: |
Thu, 27 Oct 2005 06:22:43 +0200 |
User-agent: |
Mutt/1.5.6+20040907i |
On Wed, Oct 26, 2005 at 09:32:39PM +0200, Eli Zaretskii wrote:
> > Date: Wed, 26 Oct 2005 17:02:59 +0200
> > From: address@hidden (Tomas Zerolo)
> > Cc: address@hidden, Eli Zaretskii <address@hidden>, address@hidden,
> > address@hidden
> >
> > No, it's just a hint to the compiler.
>
> 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ás
signature.asc
Description: Digital signature
- Re: New function for gdb-ui.el?, (continued)
- Re: New function for gdb-ui.el?, Frank Schmitt, 2005/10/24
- Re: New function for gdb-ui.el?, Richard M. Stallman, 2005/10/24
- Re: New function for gdb-ui.el?, Nick Roberts, 2005/10/24
- Re: New function for gdb-ui.el?, Richard M. Stallman, 2005/10/25
- Re: New function for gdb-ui.el?, Nick Roberts, 2005/10/25
- Re: New function for gdb-ui.el?, Eli Zaretskii, 2005/10/26
- Re: New function for gdb-ui.el?, Nick Roberts, 2005/10/26
- gcc and inline [was: Re: New function for gdb-ui.el?], Tomas Zerolo, 2005/10/26
- Re: gcc and inline [was: Re: New function for gdb-ui.el?], Eli Zaretskii, 2005/10/26
- Re: gcc and inline [was: Re: New function for gdb-ui.el?], Andreas Schwab, 2005/10/26
- Re: gcc and inline [was: Re: New function for gdb-ui.el?],
Tomas Zerolo <=
- Re: gcc and inline [was: Re: New function for gdb-ui.el?], Eli Zaretskii, 2005/10/27
- Re: gcc and inline [was: Re: New function for gdb-ui.el?], Richard M. Stallman, 2005/10/27
- Re: gcc and inline [was: Re: New function for gdb-ui.el?], Eli Zaretskii, 2005/10/28
- Re: gcc and inline [was: Re: New function for gdb-ui.el?], Tomas Zerolo, 2005/10/28
- Re: gcc and inline [was: Re: New function for gdb-ui.el?], Miles Bader, 2005/10/28
- Re: New function for gdb-ui.el?, Eli Zaretskii, 2005/10/26
- Re: New function for gdb-ui.el?, Richard M. Stallman, 2005/10/26
- Re: New function for gdb-ui.el?, David Hansen, 2005/10/28
- Re: New function for gdb-ui.el?, Miles Bader, 2005/10/28
- Re: New function for gdb-ui.el?, Nick Roberts, 2005/10/28