* Size of types on Alpha
@ 2000-06-12 4:00 Ian Wilkinson
2000-06-12 4:00 ` Rich Griswold
0 siblings, 1 reply; 9+ messages in thread
From: Ian Wilkinson @ 2000-06-12 4:00 UTC (permalink / raw)
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,
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Size of types on Alpha
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
` (2 more replies)
0 siblings, 3 replies; 9+ messages in thread
From: Rich Griswold @ 2000-06-12 4:00 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Size of types on Alpha
2000-06-12 4:00 ` Rich Griswold
@ 2000-06-12 4:00 ` Peter Mardahl
2000-06-12 4:00 ` Greg Lindahl
` (2 more replies)
2000-06-13 4:00 ` Jeff Sullivan
2000-06-14 4:00 ` Ian Wilkinson
2 siblings, 3 replies; 9+ messages in thread
From: Peter Mardahl @ 2000-06-12 4:00 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Size of types on Alpha
2000-06-12 4:00 ` Peter Mardahl
2000-06-12 4:00 ` Greg Lindahl
@ 2000-06-12 4:00 ` Rich Griswold
2000-06-13 4:00 ` Christian Weisgerber
2 siblings, 0 replies; 9+ messages in thread
From: Rich Griswold @ 2000-06-12 4:00 UTC (permalink / raw)
Peter Mardahl wrote:
>
> 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
>
> Rich Griswold wrote:
>
> >#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
> >
> >--
The output is from an Alpha Linux system. I assumed that since this
newsgroup is comp.os.linux.alpha, you were interested in the sizes for
Linux. In case you're interested here's the output of uname -a and
/proc/cpuinfo for the system I ran the program on:
Linux ironman 2.2.13-0.9 #3 Sun Feb 27 14:24:30 CST 2000 alpha unknown
cpu : Alpha
cpu model : EV4
cpu variation : 0
cpu revision : 0
cpu serial number : Linux_is_Great!
system type : Avanti
system variation : 0
system revision : 0
system serial number : MILO-0000
cycle frequency [Hz] : 233307816
timer frequency [Hz] : 1024.00
page size [bytes] : 8192
phys. address bits : 34
max. addr. space # : 63
BogoMIPS : 230.16
kernel unaligned acc : 21 (pc=fffffc000039a4fc,va=11ffffdea)
user unaligned acc : 0 (pc=0,va=0)
platform string : N/A
cpus detected : 0
I don't know what the sizes are on other Alpha OSes, since I don't have
access to any other systems. However, AIX 4.3 on 64-bit hardware uses
the same sizes, if that's any help :)
--
Richard Griswold
#include <stddisclaimer.h>
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"
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Size of types on Alpha
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
2 siblings, 1 reply; 9+ messages in thread
From: Greg Lindahl @ 2000-06-12 4:00 UTC (permalink / raw)
peterm@soda.CSUA.Berkeley.EDU (Peter Mardahl) writes:
> The program that Mr. Griswold posted is fine so far as it goes,
> but THE SIZE OF TYPES MAY VARY FROM OS TO OS.
You don't have to shout. The only oddball is Unicos/mk.
-- g
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Size of types on Alpha
2000-06-12 4:00 ` Greg Lindahl
@ 2000-06-12 4:00 ` Jeff Sturm
0 siblings, 0 replies; 9+ messages in thread
From: Jeff Sturm @ 2000-06-12 4:00 UTC (permalink / raw)
Greg Lindahl wrote:
> You don't have to shout. The only oddball is Unicos/mk.
And WinNT (if defunct OSes count).
Jeff
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Size of types on Alpha
2000-06-12 4:00 ` Peter Mardahl
2000-06-12 4:00 ` Greg Lindahl
2000-06-12 4:00 ` Rich Griswold
@ 2000-06-13 4:00 ` Christian Weisgerber
2 siblings, 0 replies; 9+ messages in thread
From: Christian Weisgerber @ 2000-06-13 4:00 UTC (permalink / raw)
Peter Mardahl <peterm@soda.CSUA.Berkeley.EDU> wrote:
> The program that Mr. Griswold posted is fine so far as it goes,
> but THE SIZE OF TYPES MAY VARY FROM OS TO OS.
Strictly speaking, it may even differ between compilers.
--
Christian "naddy" Weisgerber naddy@mips.inka.de
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Size of types on Alpha
2000-06-12 4:00 ` Rich Griswold
2000-06-12 4:00 ` Peter Mardahl
@ 2000-06-13 4:00 ` Jeff Sullivan
2000-06-14 4:00 ` Ian Wilkinson
2 siblings, 0 replies; 9+ messages in thread
From: Jeff Sullivan @ 2000-06-13 4:00 UTC (permalink / raw)
Just fyi...
On Tru64 UNIX V5.0 and later, sizeof(long double) is 16.
On Tru64/Digital UNIX V4.0x and earlier, it is 8 (same
as on Linux).
-Jeff
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Size of types on Alpha
2000-06-12 4:00 ` Rich Griswold
2000-06-12 4:00 ` Peter Mardahl
2000-06-13 4:00 ` Jeff Sullivan
@ 2000-06-14 4:00 ` Ian Wilkinson
2 siblings, 0 replies; 9+ messages in thread
From: Ian Wilkinson @ 2000-06-14 4:00 UTC (permalink / raw)
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,
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2000-06-14 4:00 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 ` 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
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox