Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
From: peterm@soda.CSUA.Berkeley.EDU (Peter Mardahl)
Subject: Re: Size of types on Alpha
Date: 2000/06/12	[thread overview]
Message-ID: <8i3a1f$pn$1@agate.berkeley.edu> (raw)
In-Reply-To: 39450798.AFE590D7@us.ibm.com

The program that Mr. Griswold posted is fine so far as it goes,
but THE SIZE OF TYPES MAY VARY FROM OS TO OS.

Unicos, for example, has different sizes for some datatypes than
Digital UNIX.  I can't remember if Linux sizes differ from Digital
UNIX or not:  I believe they're the same though.  I do not know about
*BSD or VMS on Alpha.

Run Mr. Griswold's program yourself and you'll be fine.

PeterM

In article <39450798.AFE590D7@us.ibm.com>,
Rich Griswold  <rgriswol@us.ibm.com> wrote:
>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
2000-06-12  4:00   ` Peter Mardahl [this message]
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