comp.lang.ada
 help / color / mirror / Atom feed
From: sommar@enea.se (Erland Sommarskog)
Subject: Re: Sizes of executables from Unix compilers
Date: 12 Jun 90 22:05:02 GMT	[thread overview]
Message-ID: <1725@enea.se> (raw)
In-Reply-To: 1990Jun8.213230.10693@cbnewsl.att.com

arny.b.engelson (arny@cbnewsl.att.com) gives some figures for
"Hello World" programs on VMS:
>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   "

Again, an operating system issue. C doesn't really fit with VMS.
Linking C is not as straightforward for other languages. I don't
use C myself, but I think a link command like

   $ LINK prog,sys$input/option
   vaxcrtlg/share

or something similar will cut down the C executable to reasonable sizes.

I like to restress the point I made a while ago: if your tiny "hello
world" program makes the disk explode, don't blame the langauge,
blame the operating system which doesn't provide shareable images.
If the OS does, blame the compiler who doesn't use them.
-- 
Erland Sommarskog - ENEA Data, Stockholm - sommar@enea.se

      parent reply	other threads:[~1990-06-12 22:05 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
1990-06-12 22:05   ` Erland Sommarskog [this message]
replies disabled

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