C vs C++ blah blah blah
- From: Chris Wedgwood <chris cyphercom com>
- To: gtk-list redhat com
- Cc: Chris Wedgwood <chris cybernet co nz>
- Subject: C vs C++ blah blah blah
- Date: Sat, 14 Jun 1997 17:17:46 -0400
For what it's worth I think the fact they did it in C is one of it's
best features.. and like others have said, you can always add wrappers
for C++.
Still not as clean as pure C++.
gtk is in C. Its not going to be re-written in C++, so why discuss the
issue any further?
Also, delete is a reserved word in C++ - so gtk should perhaps be changed to
reflect this. (ie. not use it).
Something interesting to think about :)
[snip]
This is linux 2.0.30 with all the latest - gcc version 2.7.2.1.. I'm
sure it's the linktime for the C++ version that kills it..
It will partially, normally C++ programs also requires libg++.so, libm.so
and libstdc++.so. Linked statically they are almost (if not) the same size
and the same speed on my machine.
gcc/g++ produce the same code for the both the C & C++ version of
hello-word.
x:~# time hello-c
hello world
real 0m0.002s
user 0m0.000s
sys 0m0.000s
x:~# time hello-cc
hello world
real 0m0.002s
user 0m0.000s
sys 0m0.000s
x:~#
P.S. This uses the bash-2.01 time builtin. The *bsd time thingy be default
doesn't have enough resolution. Still, these numbers are too small to
count for much.
-Chris
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]