Complete.Org: Mailing Lists: Archives: freeciv-dev: August 2001:
[Freeciv-Dev] Re: inlining functions
Home

[Freeciv-Dev] Re: inlining functions

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: rf13@xxxxxxxxxxxxxxxxxxxxxx
Cc: Jason Dorje Short <jshort@xxxxxxxxxxxxx>, freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: inlining functions
From: Gaute B Strokkenes <gs234@xxxxxxxxx>
Date: Wed, 22 Aug 2001 04:21:18 +0200

> I took Ross's autogame, the current cvs version and these commands:
> 
> -------
> hard
> set aifill 7
> set timeout -1
> set seed 42
> set randseed 42
> set endyear -1000
> create foobar
> start
> -------
> 
> I also enabled profiling. The profile data vary a lot the overall
> times however are almost constant:

What do these times measure?  The run of the game from the beginning
until game over?

> Size: 1908979 Aug 20 19:24 server/civserver*

Use the `size' command instead.

>From the timing and the size it looks like the macro isn't expanded
>in all possible cases OR gcc is also inlining other methods by using
>"-Winline -finline-functions". Looking at the gcc manual it looks
>like the latter is true. So what options have to be passed to gcc to
>just inline the functions which are marked inline?

Nothing, just use -O2 and no funny options.

-- 
Big Gaute                               http://www.srcf.ucam.org/~gs234/
Is a tattoo real, like a curb or a battleship?
 Or are we suffering in Safeway?


[Prev in Thread] Current Thread [Next in Thread]