Complete.Org: Mailing Lists: Archives: freeciv-dev: April 2000:
[Freeciv-Dev] Re: #define $#@$%! template
Home

[Freeciv-Dev] Re: #define $#@$%! template

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Vasco Alexandre Da Silva Costa <vasc@xxxxxxxxxxxxxxx>
Cc: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: #define $#@$%! template
From: Tomasz Wegrzanowski <maniek@xxxxxxxx>
Date: Fri, 28 Apr 2000 01:58:06 +0200

On Thu, Apr 27, 2000 at 11:03:20PM +0100, Vasco Alexandre Da Silva Costa wrote:
> On Thu, 27 Apr 2000, Tomasz Wegrzanowski wrote:
> > As you see, c++ compiler runs slower, makes bigger code, makes slower code
> > for simplest hello code. I have also tried more complex code :
> 
> That point is moot unless you "strip" the executable and/or turn on
> optimization.

I tried with -O6, and ended with bigger c++ vs c compiling speed difference

> > Again, slower compiler, bigger code, slower code.
> > I have tried to check assembler output,
> > c and objc make the same code
> > c++ adds twice much labels and some strange db's list on the end
> 
> > What do you think ???
> 
> Like i thought... If labels are the problem just strip'ing the executable
> will rip them away.  Unacessible code  (if present) will be removed by the
> '-O' option in gcc for both C & C++ (since that turns on some of the
> simpler global code optimizations).  Jumps to the next instruction should
> be removed also, etc.

These were *assembler* labels.
They are ignored while assembling, but they show that c++ compiler do
something unuseful with the same code, wasting its time



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