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-Thread: 103376,e56fd2619c02e35a X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.50.133 with SMTP id c5mr28790563pbo.2.1317135032257; Tue, 27 Sep 2011 07:50:32 -0700 (PDT) Path: lh7ni6019pbb.0!nntp.google.com!news1.google.com!postnews.google.com!v9g2000vbp.googlegroups.com!not-for-mail From: Ludovic Brenta Newsgroups: comp.lang.ada Subject: Re: 64 bit codes Date: Tue, 27 Sep 2011 07:50:31 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <4e817fdb$0$7615$9b4e6d93@newsspool1.arcor-online.net> <213da3b7-f9d0-4a7d-b215-9992ee0f1a02@f6g2000vbm.googlegroups.com> <2a797a9e-f0e3-4fbe-8f40-b6787b4e2879@o11g2000yqc.googlegroups.com> NNTP-Posting-Host: 153.98.68.197 Mime-Version: 1.0 X-Trace: posting.google.com 1317135032 15302 127.0.0.1 (27 Sep 2011 14:50:32 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 27 Sep 2011 14:50:32 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: v9g2000vbp.googlegroups.com; posting-host=153.98.68.197; posting-account=pcLQNgkAAAD9TrXkhkIgiY6-MDtJjIlC User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-Header-Order: HUALESRCNK X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101206 Red Hat/3.6-2.el5 Firefox/3.6.13,gzip(gfe) Xref: news1.google.com comp.lang.ada:18169 Content-Type: text/plain; charset=ISO-8859-1 Date: 2011-09-27T07:50:31-07:00 List-Id: Mok-Kong Shen wrote on comp.lang.ada: > For on 64-bit hardware a native 64-bit arithmetic > operation shouldn't last very much longer than a corresponding 32-bit > opeartion, I would think. Only a benchmark can tell. It is true that individual 64-bit machine instructions are usually just as fast as their 32-bit counterparts but 64-bit words use up twice as much memory and, especially, cache memory as 32-bit words. The 64-bit ISA has 16 extra registers that may or may not compensate for the increased cache pressure and decreased code locality in your particular case. -- Ludovic Brenta.