comp.lang.ada
 help / color / mirror / Atom feed
From: arny@cbnewsl.att.com (arny.b.engelson)
Subject: Re: Sizes of executables from VMS (was UNIX) Compilers
Date: 11 Jun 90 14:56:48 GMT	[thread overview]
Message-ID: <1990Jun11.145648.11337@cbnewsl.att.com> (raw)
In-Reply-To: 68773@cc.utah.edu

In article <68773@cc.utah.edu> RCAPENER@cc.utah.edu writes:
>In article <1990Jun8.213230.10693@cbnewsl.att.com>,
>arny@cbnewsl.att.com (arny.b.engelson) writes:
>
>	[ Hello World code and other stuff deleted ]
>
>> Ada executable =  6 blocks (512 byte blocks)
>> C   executable = 87 blocks   "
>
>I can't either, since I assume you already know that Ada (and almost all
>other languages on VAX-VMS) link in the shared libraries by default, while
>C does not.  To do that you need a file (name it SHARE.OPT) in your SYS$LOGIN
>
>You will notice that now that the C code is linked with the shareable
>libraries, it shrinks drastically in size, and is usually smaller than
>the equivalent Ada *.exe file.
>
>This blurb was provided for the enlightenment for those in the Ada
>community that work strictly on UNIX and DOS machines.  If you link
>the non-shared libraries with C (the default), and link the shared
>libraries with Ada (also the default) on VAX-VMS, you are comparing
>apples with oranges.  Link the C generated code shared, and we have
>a fairer apples - apples comparison.  I am sure Arny knew this, and
>produced it solely for the entertainment of the VAX-VMS community.


Well, yes, if you link the C code with the shareable libraries it gets much
smaller (actually I believe it ends up to be almost the same size as the
Ada executable, give a block one way or the other), and yes this then becomes
more of an apples to apples comparison.  But, the problem is a lot of people
DON'T take these issues into account when doing language comparisons.  When
your novice programmer (or an experienced programmer in a new environment)
sits down to write some code, they will come up with the results I posted,
since there will probably be nobody there to enlighten him/her.  Depending on
when you receive the articles, you may already have seen another post of VMS
results with even worse numbers for C than mine (FYI, I am running different
versions of the products than he is).  Sure gets your attention, doesn't it?

In any case, this is part of the reason such language comparison results are
often meaningless, despite the fact that they ignore the larger issues such
as life cycle costs.  Reminds me a lot of statistics.  Which language is more
efficient?  Well, which language do you WANT to be more efficient?

  -- Arny Engelson   att!wayback!arny

  reply	other threads:[~1990-06-11 14:56 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 ` Sizes of executables from Unix compilers arny.b.engelson
1990-06-09  4:01   ` Michael Feldman
1990-06-10  6:46   ` Sizes of executables from VMS (was UNIX) Compilers RCAPENER
1990-06-11 14:56     ` arny.b.engelson [this message]
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