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.6 required=5.0 tests=BAYES_05,INVALID_DATE, MSGID_SHORT autolearn=no autolearn_force=no version=3.4.4 Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!umich!samsung!sdd.hp.com!uakari.primate.wisc.edu!dali.cs.montana.edu!rpi!uupsi!sunic!enea!sommar From: sommar@enea.se (Erland Sommarskog) Newsgroups: comp.lang.ada Subject: Re: Sizes of executables from Unix compilers Message-ID: <1725@enea.se> Date: 12 Jun 90 22:05:02 GMT References: <1990Jun8.213230.10693@cbnewsl.att.com> Organization: Enea Data AB, Sweden List-Id: 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