Re: c code inliner

A Pietu Pohjalainen <>
26 Apr 2005 20:42:44 -0400

          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: A Pietu Pohjalainen <>
Newsgroups: comp.compilers
Date: 26 Apr 2005 20:42:44 -0400
Organization: University of Helsinki
References: 05-03-122
Keywords: C, optimize
Posted-Date: 26 Apr 2005 20:42:44 EDT wrote:
> Can gcc or cpp produce c code after inlining?
> I.e. I only want my c code after inlining but not compiled.
> Sort of like preprocessing "-E" but with inlining.
> Or any one knows any tools that does only "controlled" inlining?
> I don't need optimization or any thing, just inlining.

This was discussed a little bit ago, let's look through the archives:
--- clip ---
From: H T Fallside <>
Organization: Compilers Central
Date: Wed, 5 Dec 90 16:39:12 GMT

I'm after a preprocessor that will do in-line expansion of procedure
calls IN SOURCE for C to produce one lovely long main() procedure,
something capable of dealing intelligently with parameters and local
variables. Anyone out there got any ideas before I start writing ?
--- clip ---

The discussion is available at
and there's a reference to article:

"A study of a C function inliner "
Software --- Practice & Experience
Volume 18 , Issue 8 (August 1988)
Pages: 775 - 790

Pietu Pohjalainen
(I wasn't actually around at the time of the original discussion .. ;)

Post a followup to this message

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