comp.lang.ada
 help / color / mirror / Atom feed
From: arny@cbnewsl.att.com (arny.b.engelson)
Subject: Re: Sizes of executables from Unix compilers
Date: 8 Jun 90 21:32:30 GMT	[thread overview]
Message-ID: <1990Jun8.213230.10693@cbnewsl.att.com> (raw)
In-Reply-To: 1930@sparko.gwu.edu

In article <1930@sparko.gwu.edu> mfeldman@seas.gwu.edu (Michael Feldman) writes:
>Thought I'd try to shed a little light on the executable-size issue, since
>it has come up again. First, a few statistics for "hello, world." Here
>are 2 programs:
>
>with Text_IO;
>procedure Hello is
>begin
>  Text_IO.Put_Line("Hello, World.");
>end Hello;
>
>#include <stdio.h>
>main()
>{
>   printf("Hello, World\n");
>}

I can't believe I'm doing this.  I got curious enough to go run these on
a VAX/VMS system using DEC's Ada and C compilers.  Given the results, I
decided to post them (and start a war I'm sure, but what the hell)...

First of all, I ran the compilers with their default settings, no special
optimizations, pragmas, options, nothing.  Second, the source looks exactly
like Mike's programs above.  Last, the results:

Ada executable =  6 blocks (512 byte blocks)
C   executable = 87 blocks   "

Obviously, I now conclude that Ada is 14.5 times more efficient than C.

Go and analyze this to death if you want, it's still one of the stupidest
language comparison tests I've ever seen; I just found the results amusing
enough to post.  But then I didn't get enough sleep last night and it's
been a long week.

  -- Arny Engelson   att!wayback!arny

  parent reply	other threads:[~1990-06-08 21:32 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1990-06-04 22:35 Sizes of executables from Unix compilers Michael Feldman
1990-06-06  6:37 ` Erland Sommarskog
1990-06-06 23:06   ` Doug McDonald
1990-06-07  3:57     ` diamond@tkovoa
1990-06-09 15:26   ` Sizes of executables from (UNIX) VMS compilers tdhammer
1990-06-11 14:47     ` David Kassover
1990-06-11 16:43       ` Paul A. Varner
1990-06-08 21:32 ` arny.b.engelson [this message]
1990-06-09  4:01   ` Sizes of executables from Unix compilers Michael Feldman
1990-06-10  6:46   ` Sizes of executables from VMS (was UNIX) Compilers RCAPENER
1990-06-11 14:56     ` arny.b.engelson
1990-06-12 22:05   ` Sizes of executables from Unix compilers Erland Sommarskog
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox