Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Fatware
#2
C++ programs are either just about the same speed or faster than C programs. Blitz or marzec probably knows more, since they're compiler geeks.

The very first C++ compilers just converted C++ code into C and then fed them through a C compiler. So writing a converter would be a step backwards.

The extra fat in programs is from the extra complexity and/or more detailed data files. If you check the size of the binaries in modern applications, they're actually pretty small.

Code:
[chris@opium code]$ ls -al /usr/bin | sort -n -k 5 | tail -n 5
-rwxr-xr-x  1 root root    3736852 Sep  9 18:55 Xvfb
-rwxr-xr-x  1 root root    4138112 May 30 13:09 gs
-rwxr-xr-x  1 root root    5354556 Aug 30 22:54 php
-rwxr-xr-x  1 root root    5753196 Jun 27 11:33 mencoder
-rwxr-xr-x  1 root root    6390412 Jun 27 11:33 mplayer

The heaviest common executable I have is 6 megs - that's probably because it's statically linked with a bunch of other libraries (since it's a media player, that seems a fair assumption).

Personally I don't see the problem - for 99% of projects, space isn't an issue. We should be happy that we're free of those chains, not pining back to the days when we were shackled up.
img]http://www.cdsoft.co.uk/misc/shiftlynx.png[/img]
Reply


Messages In This Thread
Fatware - by wallace - 09-17-2006, 10:46 PM
Fatware - by shiftLynx - 09-17-2006, 11:26 PM
Fatware - by NecrosIhsan - 09-17-2006, 11:48 PM
Fatware - by LooseCaboose - 09-18-2006, 03:06 AM
Fatware - by wallace - 09-18-2006, 03:37 AM
Fatware - by na_th_an - 09-18-2006, 11:41 AM
Fatware - by LooseCaboose - 09-18-2006, 12:45 PM
Fatware - by na_th_an - 09-18-2006, 04:05 PM
Fatware - by wallace - 09-18-2006, 06:02 PM
Fatware - by Rattrapmax6 - 09-18-2006, 06:11 PM
Fatware - by wallace - 09-18-2006, 09:48 PM
Fatware - by LooseCaboose - 09-19-2006, 01:00 AM
Fatware - by DrV - 09-19-2006, 02:05 AM
Fatware - by na_th_an - 09-19-2006, 12:11 PM
Fatware - by LooseCaboose - 09-19-2006, 01:25 PM
Fatware - by Hard Rock - 09-19-2006, 07:53 PM
Fatware - by wallace - 09-19-2006, 09:42 PM
Fatware - by marzecTM - 09-19-2006, 10:21 PM
Fatware - by Hard Rock - 09-19-2006, 10:22 PM
Fatware - by thegrogen - 09-20-2006, 12:09 AM
Fatware - by Kevin_theprogrammer - 09-20-2006, 06:35 AM
Fatware - by na_th_an - 09-20-2006, 02:32 PM
Fatware - by marzecTM - 09-20-2006, 11:12 PM
Fatware - by na_th_an - 09-25-2006, 08:53 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)