[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gcc and inline [was: Re: New function for gdb-ui.el?]
From: |
Tomas Zerolo |
Subject: |
gcc and inline [was: Re: New function for gdb-ui.el?] |
Date: |
Wed, 26 Oct 2005 17:02:59 +0200 |
User-agent: |
Mutt/1.5.6+20040907i |
On Wed, Oct 26, 2005 at 09:58:41PM +1300, Nick Roberts wrote:
[...]
> I don't think I understand the issues. I thought if I used the keyword inline
> e.g "inline int mysquare (int x)", I would get an inline function. Perhaps
> thats not the case because I can set a breakpoint, stop there and see mysquare
> in the stack.
No, it's just a hint to the compiler. It may think it knows better than
you. You may ask the compiler to warn you when it ignores the hint (with
-Winline).
If you want to *force* inline, you may try a monstrosity like
__inline__ __attribute__((always_inline)) (if I remember correctly).
HTH
-- 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?, Nick Roberts, 2005/10/24
- 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 <=
- 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, 2005/10/27
- 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