From: Nick Ntarmos <darmnik@isc.tuc.gr>
Subject: Re: DEC compilers available for Linux?
Date: 2000/09/19 [thread overview]
Message-ID: <Pine.LNX.4.21.0009191133130.916-100000@Gatekeeper.fork.gr> (raw)
In-Reply-To: m2pum0gb5p.fsf@eco.toyama-u.ac.jp
Hi there.
On 19 Sep 2000, Takeyasu Wakabayashi wrote:
> Takeyasu Wakabayashi <twakaba@eco.toyama-u.ac.jp> writes:
>
> > #include <stdio.h>
> > #include <limits.h>
> >
> > 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
------------------------------------
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 ` RL Griswold
2000-09-26 1:20 ` ttk
2000-09-19 4:00 ` Robert Harley
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
2000-09-19 6:15 ` Takeyasu Wakabayashi
2000-09-19 4:00 ` Nick Ntarmos [this message]
2000-09-19 4:00 ` Takeyasu Wakabayashi
2000-09-18 4:00 ` Greg Lindahl
2000-09-18 4:00 ` Serguei Patchkovskii
2000-09-19 0:42 ` W Bauske
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