Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!sdd.hp.com!elroy.jpl.nasa.gov!ncar!thor.atd.ucar.edu!thor From: thor@thor.atd.ucar.edu (Richard Neitzel) Newsgroups: comp.arch Subject: Re: What is the ratio of programs sizes CISC versus RISC Message-ID: <11830@ncar.ucar.edu> Date: 13 Jun 91 19:02:32 GMT References: <3429@crdos1.crd.ge.COM> Sender: news@ncar.ucar.edu Organization: National Center for Atmospheric Research, Remote Sensing Facility Lines: 61 In article <3429@crdos1.crd.ge.COM>, davidsen@crdos1.crd.ge.COM (Wm E Davidsen Jr) writes: |> In article pb@idca.tds.philips.nl (Peter Brouwer) writes: |> | Who can give me some information about the ratio of program sizes of RISC |> | versus CISC. Code size (text) and total executable file size, both 32 |> bit systems, both unix flavors. |> |> Several files compiled in Xenix/386 (SCO C), Sun4 (Sun C), and MIPS |> (Ultrix C). All use -O. |> |> 386 Sun4 R3000 386 Sun4 R3000 |> Code Code Code File File File |> |> file1 56036 65536 81920 71716 81920 98304 zoo 2.10 alpha |> file2 43560 49152 69632 55368 65536 86016 zoo 2.01 |> file3 50692 65536 90122 64708 73728 106496 zip 0.82 |> file4 96468 163840 188416 107620 172032 200704 ksh 88e |> file5 76944 114688 151552 96416 139264 176128 memacs 3.9p3 |> |> Draw any conclusions you want, I've never seen a program which wasn't |> 15-25% larger in RISC, but that doesn't seem to a good reason for |> choosing a machine. |> -- |> bill davidsen (davidsen@crdos1.crd.GE.COM -or- uunet!crdgw1!crdos1!davidsen) |> "Most of the VAX instructions are in microcode, |> but halt and no-op are in hardware for efficiency" Well, they aren't always bigger - some of the smaller programs I've compiled for my Sun3s and Sun4s are indentical in size. What I find interesting is that of the larger programs, the 2 statically linked ones (emacs & epoch) are 19 & 15 percent larger then the Sun3 version, but the shared library programs (mwm & ups) are 35 & 28 percent larger. Anyone have any ideas why? txt data bss dec hex File size (.o) 516096 188416 0 704512 ac000 704512 Sun3 emacs 647168 188416 0 835584 cc000 835584 Sun4 emacs 516096 491520 0 1007616 f6000 1007616 Sun3 epoch 778240 385024 0 1163264 11c000 1163264 Sun4 epoch 24576 8192 0 32768 8000 32768 Sun3 g++ 24576 8192 0 32768 8000 32768 Sun4 g++ 24576 8192 0 32768 8000 32768 Sun3 gcc 24576 8192 0 32768 8000 32768 Sun4 gcc 8192 8192 0 16384 4000 16384 Sun3 geteaddr 8192 8192 0 16384 4000 16384 Sun4 geteaddr 163840 16384 0 180224 2c000 180224 Sun3 mwm 221184 16384 1088 238656 3a440 237568 Sun4 mwm 344064 40960 10256 395280 60810 385024 Sun3 ups 458752 40960 7272 506984 7bc68 499712 Sun4 ups -- Richard Neitzel thor@thor.atd.ucar.edu Torren med sitt skjegg National Center For Atmospheric Research lokkar borni under sole-vegg Box 3000 Boulder, CO 80307-3000 Gjo'i med sitt shinn 303-497-2057 jagar borni inn.