From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=BAYES_00,INVALID_DATE, MSGID_SHORT autolearn=no autolearn_force=no version=3.4.4 Path: utzoo!attcan!uunet!crdgw1!minerva!kassover From: kassover@minerva.crd.ge.com (David Kassover) Newsgroups: comp.lang.ada Subject: Re: Sizes of executables from (UNIX) VMS compilers Message-ID: <8445@crdgw1.crd.ge.com> Date: 11 Jun 90 14:47:43 GMT References: <1930@sparko.gwu.edu> <1700@enea.se> <204.2670cec6@wsuiar.uucp> Sender: news@crdgw1.crd.ge.com Organization: Aule-Tek, Inc. List-Id: 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