comp.lang.ada
 help / color / mirror / Atom feed
From: tdhammer@wsuiar.uucp
Subject: Re: Sizes of executables from (UNIX) VMS compilers
Date: 9 Jun 90 15:26:14 GMT	[thread overview]
Message-ID: <204.2670cec6@wsuiar.uucp> (raw)
In-Reply-To: 1700@enea.se

In article <1700@enea.se>, sommar@enea.se (Erland Sommarskog) writes:
> Michael Feldman (mfeldman@seas.gwu.edu) gives the sizes of some
> "hello world" programs:
>>C   (HP835)     34816
>>Ada (HP835)     86016
>>
>>C   (Sun-3)     32768
>>Ada1(Sun-3)     57344
>>Ada2(Sun-3)    106496
>>Ada3(Sun-3)    139264
> 
> I don't think this is a language issue, but one of operating system.
> Shared libraries is apparently not a standard features on Unix, it
> has been on VMS as long as I have known. I haven't tried a "Hello
> world" on VMS, but it should be less than 10 blocks (= 5120 bytes).
> -- 
> Erland Sommarskog - ENEA Data, Stockholm - sommar@enea.se


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?

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.

		Tim .D.
-------------------------------------------------------------------------------
Tim .D. Hammer                         BITNET: TDHAMMER@TWSUVAX
Teaching/Research Assistant            UUCP: (currently no good address)
Computer Science Dept.                 INTERNET: tdhammer@wsuiar.wsu.UKans.EDU
Wichita State University               
Wichita, Ks.  67208-1595               TalkNET: (316)689-3156
-------------------------------------------------------------------------------
"A little learning is a dangerous thing." Alexander Pope

  parent reply	other threads:[~1990-06-09 15:26 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   ` tdhammer [this message]
1990-06-11 14:47     ` Sizes of executables from (UNIX) VMS compilers 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
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