Re: c code inliner

"Basile Starynkevitch \[news\]" <>
2 Apr 2005 19:31:50 -0500

          From comp.compilers

Related articles
c code inliner (2005-03-31)
Re: c code inliner (Nathan Moore) (2005-04-02)
Re: c code inliner (Basile Starynkevitch \[news\]) (2005-04-02)
Re: c code inliner (2005-04-02)
Re: c code inliner (Eric Eide) (2005-04-02)
Re: c code inliner (A Pietu Pohjalainen) (2005-04-26)
Re: c code inliner (2005-04-30)
Re: c code inliner (Ira Baxter) (2005-05-04)
| List of all articles for this month |

From: "Basile Starynkevitch \[news\]" <>
Newsgroups: comp.compilers
Date: 2 Apr 2005 19:31:50 -0500
Organization: - Ours
References: 05-03-122
Keywords: C
Posted-Date: 02 Apr 2005 19:31:50 EST

On 2005-04-01, <> wrote:
> Hi
> Can gcc or cpp produce c code after inlining?
> I.e. I only want my c code after inlining but not compiled.

This does not have much sense. Inlining is interleaved with
optimisation. And the result of optimisation is some internal compiler
representation which is not always representable in C.

If you use gcc4 (not yet released, ie the latest CVS snapshot of gcc)
you might ask a printable output of the Gimple representation of code.

If (with gcc) you want a function to be always inlined, declare it
static inline __attribute__ ((__always_inline__))

email: basile<at>starynkevitch<dot>net
aliases: basile<at>tunes<dot>org = bstarynk<at>nerim<dot>net
8, rue de la Fa´encerie, 92340 Bourg La Reine, France

Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.