[Freeciv-Dev] Re: Map coordinate cleanups.
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
On Fri, Aug 17, 2001 at 08:43:17AM -0700, Kevin Brown wrote:
>
> Now, let's establish the baseline time for execution of the code
> without calling func():
>
> [kevin@frobozz kevin]$ gcc -O -o /tmp/foo /tmp/foo.c
I haven't looked at the assembler output but is possible that the
compiler removes the loop completely. The actual execution times
however are too large for a body without the loop.
> > Besides, compilers can't optimize functions as well as inlined code.
>
> Is this true of inlined functions? I have suspicions that it is. I'm
> not sure how to devise a testcase for this...
AFAIK the current compilers can only inline methods if the compiler
sees the method body at compile time. This leads to such ugly header
files as seen in some C++ code.
Raimar
--
email: rf13@xxxxxxxxxxxxxxxxx
Windows: From the people who brought you edlin...
[Freeciv-Dev] Re: Map coordinate cleanups., Gaute B Strokkenes, 2001/08/16
- [Freeciv-Dev] Re: Map coordinate cleanups., Jason Dorje Short, 2001/08/16
- [Freeciv-Dev] Re: Map coordinate cleanups., Kevin Brown, 2001/08/16
- [Freeciv-Dev] Re: Map coordinate cleanups., Vasco Alexandre Da Silva Costa, 2001/08/16
- [Freeciv-Dev] Re: Map coordinate cleanups., Kevin Brown, 2001/08/17
- [Freeciv-Dev] Re: Map coordinate cleanups.,
Raimar Falke <=
- [Freeciv-Dev] Re: Map coordinate cleanups., Kevin Brown, 2001/08/17
- [Freeciv-Dev] Re: Map coordinate cleanups., Raimar Falke, 2001/08/17
- [Freeciv-Dev] Re: Map coordinate cleanups., Kevin Brown, 2001/08/17
- [Freeciv-Dev] Re: Map coordinate cleanups., Gaute B Strokkenes, 2001/08/19
[Freeciv-Dev] Re: Map coordinate cleanups., Tony Stuckey, 2001/08/17
[Freeciv-Dev] Re: Map coordinate cleanups., Vasco Alexandre Da Silva Costa, 2001/08/17
[Freeciv-Dev] Re: Map coordinate cleanups., Justin Moore, 2001/08/17
[Freeciv-Dev] Re: Map coordinate cleanups., Kevin Brown, 2001/08/17
[Freeciv-Dev] Re: Map coordinate cleanups., Raimar Falke, 2001/08/19
[Freeciv-Dev] Re: Map coordinate cleanups., Ross W. Wetmore, 2001/08/19
|
|