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: Nick Ntarmos Subject: Re: DEC compilers available for Linux? Date: 2000/09/19 Message-ID: #1/1 X-Deja-AN: 671537829 References: <8q5i9f$rtv$1@nnrp1.deja.com> <4Csx5.4364$nk3.275467@newsread03.prod.itd.earthlink.net> X-Sender: darmnik@Gatekeeper.fork.gr Content-Type: TEXT/PLAIN; charset=US-ASCII X-Complaints-To: abuse@ntua.gr X-Trace: ulysses.noc.ntua.gr 969354999 388 212.205.228.112 (19 Sep 2000 09:16:39 GMT) Organization: National Technical University of Athens, Greece Mime-Version: 1.0 NNTP-Posting-Date: 19 Sep 2000 09:16:39 GMT Newsgroups: comp.os.linux.alpha Hi there. On 19 Sep 2000, Takeyasu Wakabayashi wrote: > Takeyasu Wakabayashi writes: > > > #include > > #include > > > > int main(void) > > { > > printf("sizeof pointer: %d bits\n", sizeof(void *) * CHAR_BIT); > > printf("sizeof double : %d bits\n", sizeof(double) * CHAR_BIT); > > printf("sizeof float : %d bits\n", sizeof(float *) * CHAR_BIT); > > printf("sizeof long : %d bits\n", sizeof(long *) * CHAR_BIT); > > return 0; > > } > > Typos: > > float * -> float > long * -> long > > Float is 32-bit on Linux/Alpha, indeed. > I think you've got it all wrong. Just compiled and run your program, getting the following output: gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release): sizeof pointer: 64 bits sizeof double : 64 bits sizeof float : 64 bits sizeof long : 64 bits Compaq C V6.2-504 ccc-6.2.9.504-2: sizeof pointer: 64 bits sizeof double : 64 bits sizeof float : 64 bits sizeof long : 64 bits So you either have a non-64 bit alpha :} or something is very wrong. See ya, Nick. -- ------------------------------------ Ntarmos Nikos. Information Systems Center. Technical University of Crete. ------------------------------------ e-mail: darmnik @ isc.tuc.gr ccompiler @ yahoo.com ccompiler @ sourceforge.net ------------------------------------