From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,66f71f9e29f106bb X-Google-Attributes: gid111c93,public From: peterm@soda.CSUA.Berkeley.EDU (Peter Mardahl) Subject: Re: Size of types on Alpha Date: 2000/06/12 Message-ID: <8i3a1f$pn$1@agate.berkeley.edu>#1/1 X-Deja-AN: 633652469 References: <39450798.AFE590D7@us.ibm.com> X-Complaints-To: abuse@berkeley.edu X-Trace: agate.berkeley.edu 960834415 823 128.32.43.52 (12 Jun 2000 18:26:55 GMT) Organization: Computer Science Undergraduate Association at UC Berkeley NNTP-Posting-Date: 12 Jun 2000 18:26:55 GMT Newsgroups: comp.os.linux.alpha 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 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 >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