comp.lang.ada
 help / color / mirror / Atom feed
From: kassover@minerva.crd.ge.com (David Kassover)
Subject: Re: Sizes of executables from (UNIX) VMS compilers
Date: 11 Jun 90 14:47:43 GMT	[thread overview]
Message-ID: <8445@crdgw1.crd.ge.com> (raw)
In-Reply-To: 204.2670cec6@wsuiar.uucp

In article <204.2670cec6@wsuiar.uucp> tdhammer@wsuiar.uucp writes:
...
>Just did a quick compile of Feldman's 4 programs under VAX/VMS Ver 5.2.
>Here are the results:
>
>		  Hello, World		   Null Program
>
>C  		    128 blocks		    122 blocks
>Ada		      6 blocks		      5 blocks
>
>Very interesting!  (A block is 512 bytes.)  Apparently the sharable
>libraries under VMS do make a big difference.  Why the big numbers
>with the C code?

just to confuse things a little more:  When you linked the C
program, did you scan the C run time library explicitly, or use
the shareable image for that, too?

Also bear in mind that the VMS linker does "demand-zero
compression" of pages that are known to contain zero, so that
these pages, while part of the address space of the program, do
not appear in the file that contains the executable image.

There are lots of other linker options that can be used to
"optimize" the image.  Some of them have significant effects on
the size of the file that is used to store the image.

>I also compiled the hello, world program in Ada using the "bad" :-;
>USE-clause.  The executable was also 6 blocks, however, I believe that
>VMS only makes allocation in 3-block groups, therefore, there could be
>a almost 1536 bytes difference between the two versions.

File allocation clusters are properties of the volume on which
they are stored, not the language used to create object, nor the
linker option used to create the executable.


Sheesh.  Comparing VMS to other operating systems which may or
may not run on the same hardware is almost as inapropos as
comparing C and Ada.  As if *any* one implementation was the
be-all and cure-all for the universe.


--
David Kassover             "Proper technique helps protect you against
kassover@ra.crd.ge.com	    sharp weapons and dull judges."
kassover@crd.ge.com			F. Collins

  reply	other threads:[~1990-06-11 14:47 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 [this message]
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
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