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 autolearn=no autolearn_force=no version=3.4.4 Path: utzoo!attcan!uunet!ncrlnk!ncrwic!wsuiar!tdhammer From: tdhammer@wsuiar.uucp Newsgroups: comp.lang.ada Subject: Re: Sizes of executables from (UNIX) VMS compilers Message-ID: <204.2670cec6@wsuiar.uucp> Date: 9 Jun 90 15:26:14 GMT References: <1930@sparko.gwu.edu> <1700@enea.se> Organization: Wichita State Univ., Wichita KS List-Id: 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