From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,534302f766ee3d8e X-Google-Attributes: gid111c93,public From: RL Griswold Subject: Re: DEC compilers available for Linux? Date: 2000/09/19 Message-ID: <39C7AD53.EEBDBBAC@us.ibm.com>#1/1 X-Deja-AN: 671709489 Content-Transfer-Encoding: 7bit References: <8q5i9f$rtv$1@nnrp1.deja.com> <4Csx5.4364$nk3.275467@newsread03.prod.itd.earthlink.net> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@news.rchland.ibm.com X-Trace: news.rchland.ibm.com 969387349 30958 9.5.218.81 (19 Sep 2000 18:15:49 GMT) Organization: IBM Rochester MN Mime-Version: 1.0 Reply-To: griswold@acm.org NNTP-Posting-Date: 19 Sep 2000 18:15:49 GMT Newsgroups: comp.os.linux.alpha Hack wrote: > > Yup. SuSE or Red Hat will do the job. The EGCS stuff will do what you need > it to do. It's ANSI compliant anyway. All of that will put you in the > 32-bit realm. It'll allow you to do long and double long computations with > no problems. But, it is 32-bit. Now if you want to go the 64-bit route > then you only have one option. And that is FreeBSD. When booting from SRM > it puts FreeBSD in 64-bit mode, and the compilers are also ANSI compliant. I have my own sizeof program that I run on different platforms. Here's what it shows when I run it on my Alpha Linux system. The first program was compiled with gcc, and the second with ccc: /home/richard/src > ./sizeof_tst.gcc char 1 short 2 int 4 long 8 long long 8 float 4 double 8 long double 8 void* 8 size_t 8 /home/richard/src > ./sizeof_tst.ccc char 1 short 2 int 4 long 8 long long 8 float 4 double 8 long double 8 void* 8 size_t 8 Here's the program: #include #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( "long long %d\n", sizeof( long long ) ); printf( "float %d\n", sizeof( float ) ); printf( "double %d\n", sizeof( double ) ); printf( "long double %d\n", sizeof( long double ) ); printf( "void* %d\n", sizeof( void* ) ); printf( "size_t %d\n", sizeof( size_t ) ); } -- Richard Griswold - griswold@acm.org #include Save the whales! Trade them for valuable prizes!