Re: c code inliner

Nathan Moore <>
2 Apr 2005 19:30:18 -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: Nathan Moore <>
Newsgroups: comp.compilers
Date: 2 Apr 2005 19:30:18 -0500
Organization: Cox Communications
References: 05-03-122
Keywords: C, tools
Posted-Date: 02 Apr 2005 19:30:18 EST 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.


Inlining is done on intermediate forms, not on C code.
You could get GCC to give you files with the intermediate form (RTL)
of your programs after inlining has been done, but it you most likely
will not be able to read it.
Why would you need this?
You could use ifdefs to swap out inline functions with macros and then
use the preprocessor.
This is not a complete solution though b/c both inline f() and #define
macros have certain abilities that the other does not.

Why would you want to do this? It is silly.


Post a followup to this message

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