From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,534302f766ee3d8e X-Google-Attributes: gid111c93,public From: Tony Hammitt Subject: Re: DEC compilers available for Linux? Date: 2000/09/19 Message-ID: <39C7A00B.C0D5994@kc.rr.com>#1/1 X-Deja-AN: 671686673 Content-Transfer-Encoding: 7bit References: <8q5i9f$rtv$1@nnrp1.deja.com> <4Csx5.4364$nk3.275467@newsread03.prod.itd.earthlink.net> <8q7hta$bqg$1@mamenchi.zrz.TU-Berlin.DE> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@rr.com X-Trace: typhoon.kc.rr.com 969383947 24.163.146.163 (Tue, 19 Sep 2000 12:19:07 CDT) MIME-Version: 1.0 Reply-To: tony@hammitt.com NNTP-Posting-Date: Tue, 19 Sep 2000 12:19:07 CDT Newsgroups: comp.os.linux.alpha 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