From: "Ian Wilkinson" <null@null.co.uk>
Subject: Re: Size of types on Alpha
Date: 2000/06/14 [thread overview]
Message-ID: <ECA15.24015$J5.367766@stones> (raw)
In-Reply-To: 39450798.AFE590D7@us.ibm.com
Rich Griswold <rgriswol@us.ibm.com> wrote in message
news:39450798.AFE590D7@us.ibm.com...
> Ian Wilkinson wrote:
> >
> > I would like to know where I can find information on the size of char,
int,
> > long int and float on Alpha.
> >
> > Any information would be very helpful.
> >
> > Ian.
>
> #include <stdio.h>
> main(){
> printf( "char %d\n", sizeof( char ) );
> printf( "short %d\n", sizeof( short ) );
> printf( "int %d\n", sizeof( int ) );
> printf( "long %d\n", sizeof( long ) );
> printf( "float %d\n", sizeof( float ) );
> printf( "double %d\n", sizeof( double ) );
> printf( "long double %d\n", sizeof( long double ) );
> }
>
> Output on 21064A:
>
> char 1
> short 2
> int 4
> long 8
> float 4
> double 8
> long double 8
Thanks. I had looked in the kernel source, but as I'm not too much of a
hacker I didn't find what I was looking for
> Uptime at 10:50am up 62 days, 25 min, 5 users, load average: 0.10,
> 0.10, 0.09
Nice uptime. I have to move from one side of England to the other fairly
regularly so I get about 14/21 days uptime and have to shutdown again...
Ian.
--
First thing we do, let's kill all the lawyers.
- Dick the Butcher in Shakespeare's Henry VI
Uptime at 1:41am up 4 days, 11:04, 8 users,
prev parent reply other threads:[~2000-06-14 4:00 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-06-12 4:00 Size of types on Alpha Ian Wilkinson
2000-06-12 4:00 ` Rich Griswold
2000-06-12 4:00 ` Peter Mardahl
2000-06-12 4:00 ` Rich Griswold
2000-06-12 4:00 ` Greg Lindahl
2000-06-12 4:00 ` Jeff Sturm
2000-06-13 4:00 ` Christian Weisgerber
2000-06-13 4:00 ` Jeff Sullivan
2000-06-14 4:00 ` Ian Wilkinson [this message]
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