From: Tony Hammitt <thammitt@kc.rr.com>
Subject: Re: DEC compilers available for Linux?
Date: 2000/09/19 [thread overview]
Message-ID: <39C7A00B.C0D5994@kc.rr.com> (raw)
In-Reply-To: m2d7i0poz7.fsf@eco.toyama-u.ac.jp
Float is 32 bits on any alpha and double is 64. There are IEEE
standards for these things...
What confuses Cray programmers the first time is that on the big
vector machines, 'single' precision is 64 bits and 'double' precision
is 128.
The big advantage to using float type on an alpha (if you can afford
the loss of precision) is that the cache line holds twice as many
'numbers' which is quite often the limiting factor in performance,
i.e. 'how much data can we get pumped through the bus to the processor'.
But once the data is on the processor, doing calculations will
take just as much time with float or double. They use the same
transistors to do either, they just fix up the leftover bits
with floating point calculations to come out to what they should be
according to IEEE rules.
Compilers should issue warnings about implicit type casts =-]
This has been a most confusing thread...
Regards,
Tony Hammitt
P.S. If you think this is strange, try thinking about the IBM
RS64 line of processors that can have 32 or 64 bit address space
threads running concurrently. Some people never did understand
that it would execute 32 bit code just like always but could also
execute 64 bit code (like the OS) at the same time. It even has
twinned libraries like a PowerMac. It really is confusing..
Takeyasu Wakabayashi wrote:
>
> bruns@tetibm2.ee.TU-Berlin.DE (Warner Bruns) writes:
>
> > float is 32 bits on Cray T3E as well.
> > Does this mean a Cray T3E is a 32 bits machine ;-)?
>
> It just means some naive programmers believing double and float
> are both 32-bits will get upset when working on Cray T3E. Compilers
> should issue a lot of warning messages on implicit type casts.
>
> Again, Linux/Alpha is a true 64-bit operating system,
> in the sense its address space is 64-bit. Current implementation
> allows a user space of 2^42 bytes and it seems to be a limitation
> imposed by PAL code. I'm no expert on computer, so I leave the
> 64-bitness issue to other more knowledgeable people.
>
> --
> Takeyasu Wakabayashi
> Faculty of Economics, Toyama University
> twakaba@eco.toyama-u.ac.jp
next prev parent reply other threads:[~2000-09-19 4:00 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-09-18 4:00 DEC compilers available for Linux? darcher8987
2000-09-18 4:00 ` Hack
2000-09-19 4:00 ` Robert Harley
2000-09-19 4:00 ` RL Griswold
2000-09-26 1:20 ` ttk
2000-09-19 6:12 ` Takeyasu Wakabayashi
2000-09-19 4:00 ` Warner Bruns
2000-09-19 4:00 ` Takeyasu Wakabayashi
2000-09-19 4:00 ` Tony Hammitt [this message]
2000-09-19 6:15 ` Takeyasu Wakabayashi
2000-09-19 4:00 ` Nick Ntarmos
2000-09-19 4:00 ` Takeyasu Wakabayashi
2000-09-18 4:00 ` Serguei Patchkovskii
2000-09-19 0:42 ` W Bauske
2000-09-18 4:00 ` Greg Lindahl
2000-09-24 4:00 ` Don Baker
2000-09-24 4:00 ` Serguei Patchkovskii
2000-09-24 4:00 ` Rob Komar
2000-09-26 4:00 ` Don Baker
2000-09-26 4:00 ` Serguei Patchkovskii
2000-10-17 4:00 ` jdonsbach
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