Related articles |
---|
[4 earlier articles] |
Re: Optimizing empty functions in C debray@CS.Arizona.EDU (Saumya K. Debray) (2002-06-14) |
Re: Optimizing empty functions in C cdg@nullstone.com (Christopher Glaeser) (2002-06-17) |
Re: Optimizing empty functions in C wasowski@data.pl (Andrzej Wasowski) (2002-06-20) |
Re: Optimizing empty functions in C wasowski@data.pl (Andrzej Wasowski) (2002-06-20) |
Re: Optimizing empty functions in C wasowski@data.pl (Andrzej Wasowski) (2002-06-20) |
Re: Optimizing empty functions in C mlacey@microsoft.com (Mark Lacey \[MSFT\]) (2002-06-20) |
Re: Optimizing empty functions in C dnovillo@redhat.com (Diego Novillo) (2002-06-28) |
Re: Optimizing empty functions in C snicol@apk.net (Scott Nicol) (2002-06-28) |
Re: Optimizing empty functions in C haberg@matematik.su.se (Hans Aberg) (2002-06-28) |
Re: Optimizing empty functions in C ralph@inputplus.co.uk (Ralph Corderoy) (2002-06-28) |
Re: Optimizing empty functions in C iddw@hotmail.com (Dave Hansen) (2002-06-28) |
Re: Optimizing empty functions in C Peter-Lawrence.Montgomery@cwi.nl (Peter L. Montgomery) (2002-06-28) |
From: | "Diego Novillo" <dnovillo@redhat.com> |
Newsgroups: | comp.compilers |
Date: | 28 Jun 2002 18:02:19 -0400 |
Organization: | Red Hat Canada |
References: | 02-06-025 02-06-047 02-06-060 |
Keywords: | optimize, C |
Posted-Date: | 28 Jun 2002 18:02:19 EDT |
On Thu, 20 Jun 2002, Andrzej Wasowski wrote:
> Wait a moment. I meant *C* compilers not C++. Do you mean that there
> is a kind of automatic inilining employed for small functions in
> most of C compilers?
GCC will inline functions if you specify -O3 or -finline-functions.
It works for both C and C++. You can also mark C functions inline.
Diego.
Return to the
comp.compilers page.
Search the
comp.compilers archives again.