From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,cd94262689ea0382,start X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1993-08-05 09:12:55 PST Newsgroups: comp.unix.osf.osf1 Path: gmd.de!xlink.net!scsing.switch.ch!univ-lyon1.fr!vishnu.jussieu.fr!univ-lille1.fr!zaphod.crihan.fr!pipex!uunet!sangam!iitb!arjun.cse!jogin.cse!shuvam From: shuvam@cse.iitb.ernet.in (shuvam misra) Subject: Sizeof various types in Alpha's C Message-ID: <1993Aug5.101709.9698@cse.iitb.ernet.in> Followup-To: poster Organization: Dept of Computer Science, IIT Bombay Date: Thu, 5 Aug 1993 10:17:09 GMT 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 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