Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Jim Paradis <jrp@jrp.tiac.net>
Subject: Re: Compiling 64 bit code
Date: Mon, 16 Jun 1997 00:23:10 -0400	[thread overview]
Message-ID: <b34a1dfb9ab6845119ec5dfd3b9ee77a.axp-list@archive.invalid> (raw)

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1403 bytes --]

Thomas Pornin wrote:

Actually, I believe using 32 bits operands is better than 64 bits ones

on an alpha when only the first 32 bits are used. You may use less

opcodes to fill a register, and the memory accesses are faster (as
long

as the 32 bits words are aligned on doublewords boundaries). Assembly

instructions handle well the 32 bits case.

Not entirely true.  32-bit memory accesses take exactly the same
amount

of time as 64-bit memory accesses.  The primary advantage to using
32 bits

is that you can pack twice as many of them into a cache block, thus
reducing

the number of cache misses.

On the possible downside, the LDL instruction automatically sign-extends

the 32-bit operand into the 64-bit register.  This may or may
not be desired

behavior depending on what you are doing (okay for signed arithmetic,
not so

okay for pointers or mixed 32/64-bit unsigned calculations). 
I believe, though,

that a ZAP instruction will multiple-issue along with an LDL, so if
it's important

that you get unsigned behavior you can do it this way with minimal
performance

penalty...

 

-- 
Jim Paradis   jrp@jrp.tiac.net   http://www.tiac.net/users/jrp/index.html
"It's not procrastination, it's my new Just-In-Time Workload Management System!"

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

             reply	other threads:[~1997-06-16  4:23 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-06-16  4:23 Jim Paradis [this message]
     [not found] <01BC77F9.83016500@pengwin.qantel.com>
1997-06-15 23:48 ` Compiling 64 bit code Thomas Pornin
  -- strict thread matches above, loose matches on Subject: below --
1997-06-14  3:12 Jim Paradis
1997-06-14  2:51 Jim Paradis
     [not found] <9706131527.AA17307@cadosf.hlo.dec.com>
1997-06-13 21:14 ` Ross A. Knepper
1997-06-13 19:58 Kelvin Lunsford
     [not found] <33A0AFE4.3973144C@jrp.tiac.net>
1997-06-13  3:54 ` Michal Jaegermann
1997-06-13  2:26 Jim Paradis
1997-06-12 21:06 Kelvin Lunsford
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox