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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,5a97e6705e234408 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-09-19 03:13:03 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: dewar@gnat.com (Robert Dewar) Newsgroups: comp.lang.ada Subject: Re: Expected bytes per sloc (semicolons) performance Date: 19 Sep 2001 03:13:03 -0700 Organization: http://groups.google.com/ Message-ID: <5ee5b646.0109190213.1092dc91@posting.google.com> References: <8f23da36.0109181403.52128d70@posting.google.com> <_hRp7.7630$ot.1153235@typhoon.ne.mediaone.net> NNTP-Posting-Host: 32.100.239.142 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1000894383 7649 127.0.0.1 (19 Sep 2001 10:13:03 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 19 Sep 2001 10:13:03 GMT Xref: archiver1.google.com comp.lang.ada:13174 Date: 2001-09-19T10:13:03+00:00 List-Id: "Jeff Creem" wrote in message news:<_hRp7.7630$ot.1153235@typhoon.ne.mediaone.net>... > As for RISC/CISC.... One sometimes ends up with slightly larger code on a > RISC than > CISC machine but this probably has almost as much to do with mandatory nops, > missed delayed branch opportunities and alignment requirements as it does > with > the straight RISC/CISC issues. This is a misleading assessment. First of all most modern RISC machines do not have mandatory nops etc, so you are really talking about old style architectures here. Second, these days CISC in practice means ia32 (and we now include x86-64) and the code for this architecture is significantly more compact, not just slightly. And the reasons are not the ones you gave above, but rather that this architecture has many short instructions, e.g. normal references to the local frame are 2-byte instructions instead of 4-bytes, as are most conditional jumps and normal register/register arithmetic. This can add up to a big and significant difference, which can translate into significant icache advantages. This is one of the reasons that this architecture does "better than expected" when compared to RISC designs.