Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
From: Rich Griswold <rgriswol@us.ibm.com>
Subject: Re: Size of types on Alpha
Date: 2000/06/12	[thread overview]
Message-ID: <39450798.AFE590D7@us.ibm.com> (raw)
In-Reply-To: Yn615.15200$J5.332930@stones

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.
> --
> Do not meddle in the affairs of sysadmins, for they are subtle and quick to
> anger.
> 
> Uptime at  6:41am  up 2 days, 16:03, 10 users,

#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

-- 

Richard Griswold

On the products of the Sirius Cybernetics Corporation:

"It is easy to be blinded to the essential uselessness of them by
the sense of achievement you get from getting them to work at all.
In other words... their fundamental design flaws are completely
hidden by their superficial design flaws."
  Douglas Adams, "So Long, and Thanks For All the Fish"

Uptime at 10:50am  up 62 days, 25 min,  5 users,  load average: 0.10,
0.10, 0.09



  reply	other threads:[~2000-06-12  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 [this message]
2000-06-12  4:00   ` Peter Mardahl
2000-06-12  4:00     ` Greg Lindahl
2000-06-12  4:00       ` Jeff Sturm
2000-06-12  4:00     ` Rich Griswold
2000-06-13  4:00     ` Christian Weisgerber
2000-06-13  4:00   ` Jeff Sullivan
2000-06-14  4:00   ` Ian Wilkinson
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