Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Sizeof various types in Alpha's C
@ 1993-08-05 10:17 shuvam misra
  0 siblings, 0 replies; only message in thread
From: shuvam misra @ 1993-08-05 10:17 UTC (permalink / 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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1993-08-05 10:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1993-08-05 10:17 Sizeof various types in Alpha's C shuvam misra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox