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.38.134 with SMTP id g6mr29104660pbk.6.1317138577859; Tue, 27 Sep 2011 08:49:37 -0700 (PDT) Path: lh7ni6045pbb.0!nntp.google.com!news1.google.com!news4.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Bill Findlay Newsgroups: comp.lang.ada Subject: Re: 64 bit codes Date: Tue, 27 Sep 2011 16:49:34 +0100 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> Mime-Version: 1.0 X-Trace: individual.net gypKdwMY1eXZ+1w55ZWnYwMY55csoWmIt3tF/tS1b3d5BgjLE1 Cancel-Lock: sha1:Z+Xwb7MBscSFdu9nNi/APUpv1hI= User-Agent: Microsoft-Entourage/12.28.0.101117 Thread-Topic: 64 bit codes Thread-Index: Acx9LQ15RU0KsoBzq0WEAFmpazAQ6A== Xref: news1.google.com comp.lang.ada:18173 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Date: 2011-09-27T16:49:34+01:00 List-Id: On 27/09/2011 15:50, in article cec56016-8606-484b-810b-3cdf1e0fcc48@v9g2000vbp.googlegroups.com, "Ludovic Brenta" wrote: > 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. My KDF9 emulator is speeded up by a factor of *more than* two by 64-bit mode. This is because its integer and logical operands are predominantly more than 32 bits in size. Pointers are used, but form a negligible part of the storage space and computational effort. So, while your caveats are of course valid, there certainly are workloads that benefit greatly from working in 64 bits. -- Bill Findlay with blueyonder.co.uk; use surname & forename;