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.7 required=5.0 tests=BAYES_00,INVALID_DATE, MSGID_SHORT,REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!ucsd!ucbvax!decwrl!shlump.nac.dec.com!tkou02.enet.dec.com!diamond From: diamond@tkou02.enet.dec.com (diamond@tkovoa) Newsgroups: comp.lang.ada Subject: Re: Sizes of executables from Unix compilers Message-ID: <1775@tkou02.enet.dec.com> Date: 7 Jun 90 03:57:27 GMT References: <1930@sparko.gwu.edu> <1700@enea.se> <1990Jun6.230600.4736@ux1.cso.uiuc.edu> Reply-To: diamond@tkou02.enet.dec.com (diamond@tkovoa) Organization: Digital Equipment Corporation Japan , Tokyo List-Id: In article <1990Jun6.230600.4736@ux1.cso.uiuc.edu> mcdonald@aries.scs.uiuc.edu (Doug McDonald) writes: >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 [deleted] >>I don't think this is a language issue, but one of operating system. >Perhaps. Let me add: >assembler(IBM-PC) 22 >C(IBM-PC) 3-8000 depending >Does anybody recall how many (decimal digits, not bytes) it would be >on an IBM 1620 - my guess would be 23 or 24 decimal digits (5 bits >per decimal digit). (This would, of course be machine language :-), Awright, you asked for it. It's impossible. OK, here goes for a "HELLO WORLD" program (which is possible in upper case), and I've forgotten the typewriter control digit for carriage return so I put a ? in the listing below. Also there's no record mark in ASCII, so I put a # in the listing. locn. instruction mnemonic 00000 360002700100 WATY 27 (write alpha to ty, starting locn. 00026/00027) 00012 34000000010? RCTY (return carriage on typewriter) 00024 484845535356 H2 (halt) Note that the addresses are ignored |||||||||| in a halt instruction, so we start ////////// using that space for data instead of |||||||||| wasting it. 00026 48455353560066565953440# DAC 12,HELLO WORLD@ (define alpha const) So you would just type in: 36000270010034000000010?4848455353560066565953440# Looks like fifty digits. Typical software management here, underestimated by a factor of 2. -- Norman Diamond, Nihon DEC diamond@tkou02.enet.dec.com Proposed group comp.networks.load-reduction: send your "yes" vote to /dev/null.