Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: shuvam@cse.iitb.ernet.in (shuvam misra)
Subject: Sizeof various types in Alpha's C
Date: Thu, 5 Aug 1993 10:17:09 GMT	[thread overview]
Message-ID: <1993Aug5.101709.9698@cse.iitb.ernet.in> (raw)


This is for any kind souls who have DEC Alpha machines running OSF/1. I
need to find out what, according to the C compiler, are the sizes of
various data types. I don't have access to any Alpha machine anywhere
around me. Will you please compile and run the following program on your
machine and send me the results by email? I am almost certain that not too
many others will be interested in the output of this program. So please
don't post the results; just email them to:

	shuvam@jogin.cse.iitb.ernet.in

The C program is:
----------------------------------------------------------------------
#include <stdio.h>
main()
{
    printf("sizeof (short) = %d\n", sizeof (short));
    printf("sizeof (int) = %d\n", sizeof (int));
    printf("sizeof (long) = %d\n", sizeof (long));
    printf("sizeof (void *) = %d\n", sizeof (void *));
    printf("sizeof (void (*)()) = %d\n", sizeof (void (*)()));
    printf("sizeof (float) = %d\n", sizeof (float));
    printf("sizeof (double) = %d\n", sizeof (double));
    return 0;
}
----------------------------------------------------------------------

With your answer, please include the name and version of the C compiler
you are using. I used to think OSF/1 always comes with gcc (we are members
of OSF and we get only gcc with their sources), but I now see discussions
which mention DEC's C compiler.

Thanks.
							Shuvam


                 reply	other threads:[~1993-08-05 10:17 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
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