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: Gaute B Strokkenes <gs234@xxxxxxxxx>
Cc: Jason Dorje Short <jshort@xxxxxxxxxxxxx>, freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: inlining functions
From: Raimar Falke <hawk@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 22 Aug 2001 08:47:47 +0200
Reply-to: rf13@xxxxxxxxxxxxxxxxxxxxxx

On Wed, Aug 22, 2001 at 04:21:18AM +0200, Gaute B Strokkenes wrote:
> 
> > 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?

Yes measured with time(1).

> > Size: 1908979 Aug 20 19:24 server/civserver*
> 
> Use the `size' command instead.

Ok.

> >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.

Ok.

        Raimar

-- 
 email: rf13@xxxxxxxxxxxxxxxxx
 "From what I am reading Win98 and NT5.0 will be getting rid of all that
  crap anyway. Seems that Microsoft has invented something called TCP/IP and
  another really revolutionary concept called DNS that eliminates the
  netbios crap too. All that arping from browsers is going to go away.
  I also hear rumors that they are on the verge of breakthrough discoveries
  called NFS, and LPD too. Given enough time and money, they might
  eventually invent Unix."
    -- George Bonser in linux-kernel


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