[Freeciv-Dev] Re: #define $#@$%! template
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
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
- [Freeciv-Dev] Re: #define $#@$%! template, (continued)
- [Freeciv-Dev] Re: #define $#@$%! template, Dan Gohman, 2000/04/26
- [Freeciv-Dev] Re: #define $#@$%! template, Tomasz Wegrzanowski, 2000/04/26
- [Freeciv-Dev] Re: #define $#@$%! template, Thue Janus Kristensen, 2000/04/26
- [Freeciv-Dev] Re: #define $#@$%! template, Michael H. Price II, 2000/04/26
- [Freeciv-Dev] Re: #define $#@$%! template, paulz, 2000/04/26
- [Freeciv-Dev] Re: #define $#@$%! template, Dan Gohman, 2000/04/26
- [Freeciv-Dev] OO model for Freeciv? (was: #define $#@$%! template), Reinier Post, 2000/04/27
- [Freeciv-Dev] Re: #define $#@$%! template, Tomasz Wegrzanowski, 2000/04/27
- [Freeciv-Dev] Re: #define $#@$%! template, Tomasz Wegrzanowski, 2000/04/27
- [Freeciv-Dev] Re: #define $#@$%! template, Vasco Alexandre Da Silva Costa, 2000/04/27
- [Freeciv-Dev] Re: #define $#@$%! template,
Tomasz Wegrzanowski <=
[Freeciv-Dev] Re: what the $#@$%!, Thue Janus Kristensen, 2000/04/26
|
|